-
Notifications
You must be signed in to change notification settings - Fork 22
/
features.js
2111 lines (2106 loc) · 78.9 KB
/
features.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* The format of this file is documented in the README.md.
*
* The file is ordered with entries related to the most recent version of
* PHP at the top, and the oldest version at the bottom.
*
* That means:
* - A feature added in the most recent version of PHP goes at the top of the file.
* - Equally a feature deprecated or removed in the most recent version of PHP
* will also go at the top of the file.
* - A feature added in the oldest version will go at the bottom of the file. UNLESS
* it is then deprecated or removed in a newer version.
*/
const features = [
{
name: "Property Hooks",
description: "Allows object properties to have getter and setter hooks/methods.",
keywords: ["hooks", "getter", "setter", "objects", "properties"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.property-hooks" },
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/property-hooks" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-in-php-84#property-hooks-rfc" },
{ name: "Ash Allen Design Blog", url: "https://ashallendesign.co.uk/blog/php-84-property-hooks" },
]
},
{
name: "Asymmetric Property Visibility",
description: "Object properties may now have their set visibility controlled separately from the get visibility.",
keywords: ["objects", "getters", "setters", "properties"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.asymmetric-property-visibility" },
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/asymmetric-visibility-v2" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-in-php-84#asymmetric-visibility-rfc" }
]
},
{
name: "Lazy Objects",
description: "It is now possible to create objects whose initialization is deferred until they are accessed.",
keywords: ["objects", "initialization", "constructor"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.lazy-objects" },
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/lazy-objects" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-in-php-84#lazy-objects-rfc" }
]
},
{
name: "#[\\Deprecated] attribute",
description: "The new Deprecated attribute can be used to mark functions, methods, and class constants as deprecated.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.deprecated-attribute" }
]
},
{
name: "request_parse_body() function",
description: "Added `request_parse_body()` function that allows parsing RFC1867 (multipart) requests in non-POST HTTP requests.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.rfc1867" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/request_parse_body" }
]
},
{
name: "`new` without parentheses",
description: "New expressions with constructor arguments now allow chaining method calls, property accesses, etc. without enclosing the expression in parentheses.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.new-chaining" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-in-php-84#new-without-parentheses-rfc" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-with-parentheses-php-84" },
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/new_without_parentheses" }
]
},
{
name: "Improved Debugging Info for WeakReference",
description: "Getting the debug info for `WeakReference` will now also output the object it references, or `null` if the reference is no longer valid.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.debug-weakref" }
]
},
{
name: "Improved Debugging Info for Closure",
description: "The output of `Closure::__debugInfo()` now includes the name, file, and line of the Closure.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.debug-closure" }
]
},
{
name: "Defining Identical Symbols in Different Namespace Blocks",
description: "Exiting a namespace now clears seen symbols. This allows using a symbol in a namespace block, even if a previous namespace block declared a symbol with the same name.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.core.multiple-namespaces-symbols" }
]
},
{
name: "curl_version() feature_list support",
description: "`curl_version()` returns an additional `feature_list` value, which is an associative array of all known cURL features, and whether they are supported (`true`) or not (`false`).",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.curl" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/curl_version-feature_list" }
]
},
{
name: "CURL_HTTP_VERSION_3 and CURL_HTTP_VERSION_3ONLY constants for HTTP/3 support",
description: "Added `CURL_HTTP_VERSION_3` and `CURL_HTTP_VERSION_3ONLY` constants as available options for `CURLOPT_HTTP_VERSION`.",
keywords: ["http3", "quic"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.curl" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/CURL_HTTP_VERSION_3-CURL_HTTP_VERSION_3ONLY" }
]
},
{
name: "CURLOPT_PREREQFUNCTION option",
description: "Added `CURLOPT_PREREQFUNCTION` as a cURL option that accepts a callable to be called after the connection is made, but before the request is sent",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.curl" }
]
},
{
name: "CURLOPT_SERVER_RESPONSE_TIMEOUT option",
description: "Added `CURLOPT_SERVER_RESPONSE_TIMEOUT`, which was formerly known as `CURLOPT_FTP_RESPONSE_TIMEOUT`. Both constants hold the same value.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.curl" }
]
},
{
name: "CURLOPT_DEBUGFUNCTION option",
description: "Added `CURLOPT_DEBUGFUNCTION` as a cURL option that accepts a callable that gets called during the request lifetime.",
keywords: ["debugging"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.curl" }
]
},
{
name: "CURLOPT_BINARYTRANSFER deprecated",
description: "",
keywords: [],
added: "5.6",
deprecated: 8.4,
removed: null,
resources: [
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/CURLOPT_BINARYTRANSFER-deprecated" },
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.deprecated.php#migration84.deprecated.core.curl" }
]
},
{
name: "Dom namespace",
description: "Added the `Dom` namespace with new classes as counterparts to the existing `DOM` classes (e.g. `Dom\Node` is the new `DOMNode`). These classes are compatible with HTML 5 and are WHATWG spec-compliant.",
keywords: ["HTML5"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.dom" }
]
},
{
name: "DOMNode::compareDocumentPosition()",
description: "`DOMNode::compareDocumentPosition()` with its associated constants",
keywords: ["HTML"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.dom" }
]
},
{
name: "Intl: NumberFormatter::ROUND_HALFODD",
description: "Added the `NumberFormatter::ROUND_HALFODD` to complement the existing `NumberFormatter::ROUND_HALFEVEN` functionality",
keywords: ["internationalization", "localization", "i18n", "formatting"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.intl" }
]
},
{
name: "OpenSSL: support for Curve25519 + Curve448 based keys",
description: "Added support for Curve25519 + Curve448 based keys. Specifically x25519, ed25519, x448 and ed448 fields are supported.",
keywords: ["security", "encryption", "cryptography"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.openssl" }
]
},
{
name: "OpenSSL: PASSWORD_ARGON2 password hashing",
description: "Implement `PASSWORD_ARGON2` password hashing. Requires OpenSSL 3.2 and NTS build.",
keywords: ["security", "encryption", "cryptography"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.openssl" }
]
},
{
name: "PCRE2 Regular Expressions",
description: "The bundled pcre2lib has been updated, enabling new patterns and modifiers.",
keywords: ["regex", "case", "assertions", "perl"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.pcre" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/pcre2-regexp-syntax-changes" }
]
},
{
name: "ReflectionClass improvements in PHP 8.4",
description: "Multiple new methods and constants which are related to the lazy objects feature have been added, plus other small additions.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.reflection" }
]
},
{
name: "bcceil()",
description: "",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.bcmath" }
]
},
{
name: "bcdivmod()",
description: "",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.bcmath" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/bcdivmod" }
]
},
{
name: "bcfloor()",
description: "",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.bcmath" }
]
},
{
name: "bcround()",
description: "",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.bcmath" }
]
},
{
name: "DateTime::createFromTimestamp() and DateTimeImmutable::createFromTimestamp()",
description: "The `DateTime` and `DateTimeImmutable` classes in PHP 8.4 have a new method named `createFromTimeStamp` creates an instance from a given UNIX timestamp as an integer or a float value.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/datetime-createFromTimestamp" },
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.date" }
]
},
{
name: "DateTime::getMicrosecond() and DateTimeImmutable::getMicrosecond()",
description: "The `DateTime` and `DateTimeImmutable` classes in PHP 8.4 and later support `getMicrosecond` and `setMicrosecond` methods to get and set the microsecond amount of the `DateTime`/`DateTimeImmutable` objects.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/date-datetime-get-setMicrosecond" },
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.date" }
]
},
{
name: "DateTime::setMicrosecond() and DateTimeImmutable::setMicrosecond()",
description: "The `DateTime` and `DateTimeImmutable` classes in PHP 8.4 and later support `getMicrosecond` and `setMicrosecond` methods to get and set the microsecond amount of the `DateTime`/`DateTimeImmutable` objects.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/date-datetime-get-setMicrosecond" },
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.date" }
]
},
{
name: "DOMXPath::quote()",
description: "`DOMXPath::quote` — Quotes a string for use in an XPath expression",
keywords: ["HTML", "XML"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/domxpath.quote.php" }
]
},
{
name: "IntlDateFormatter::getIanaID()",
description: "The Intl extension in PHP 8.4 provides a new function named `intltz_get_iana_id` and a new static method `IntlTimeZone::getIanaID()` that returns the IANA time zone ID for a given timezone identifier.",
keywords: ["internationalization", "localization", "i18n", "formatting"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/intltz_get_iana_id-IntlTimeZone-getCanonicalID" },
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.intl" }
]
},
{
name: "intltz_get_iana_id()",
description: "The Intl extension in PHP 8.4 provides a new function named `intltz_get_iana_id` and a new static method `IntlTimeZone::getIanaID()` that returns the IANA time zone ID for a given timezone identifier.",
keywords: ["internationalization", "localization", "i18n", "formatting"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/intltz_get_iana_id-IntlTimeZone-getCanonicalID" },
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.intl" }
]
},
{
name: "IntlDateFormatter::parseToCalendar()",
description: "",
keywords: ["internationalization", "localization", "i18n", "formatting"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.intl" }
]
},
{
name: "SpoofChecker::setAllowedChars()",
description: "",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-functions.php#migration84.new-functions.intl" }
]
},
{
name: "grapheme_str_split()",
description: "Split a string into an array with support for grapheme cluster byte characters.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.grapheme-str-split.php" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/grapheme_str_split" }
]
},
{
name: "mb_ucfirst()",
description: "Make a string's first character uppercase (multi-byte safe).",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.mb-ucfirst.php" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/mb_ucfirst-mb_ucfirst" }
]
},
{
name: "mb_lcfirst()",
description: "Make a string's first character lowercase (multi-byte safe).",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.mb-lcfirst.php" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/mb_ucfirst-mb_ucfirst" }
]
},
{
name: "mb_rtrim()",
description: "Strip whitespace (or other characters) from the end of a string (multi-byte safe).",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.mb-rtrim.php" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/mb_trim-mb_ltrim-mb_rtrim" }
]
},
{
name: "mb_ltrim()",
description: "Strip whitespace (or other characters) from the beginning of a string (multi-byte safe).",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.mb-ltrim.php" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/mb_trim-mb_ltrim-mb_rtrim" }
]
},
{
name: "mb_trim()",
description: "Strip whitespace (or other characters) from the beginning and end of a string (multi-byte safe).",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.mb-trim.php" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/mb_trim-mb_ltrim-mb_rtrim" }
]
},
{
name: "http_get_last_response_headers()",
description: "PHP 8.4 adds the function `http_get_last_response_headers` that gets the HTTP headers of the last HTTP wrapper response. This can replace the historical `$http_response_header` variable.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/http_get-clear_last_response_headers" }
]
},
{
name: "http_clear_last_response_headers()",
description: "PHP 8.4 adds the function `http_clear_last_response_headers` that clears the HTTP headers of the last HTTP wrapper response. This can replace the historical `$http_response_header` variable.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/http_get-clear_last_response_headers" }
]
},
{
name: "array_all()",
description: "Checks if all array elements satisfy a callback function.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.array-all.php" },
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/array_find" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/array_find-array_find_key-array_any-array_all" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-in-php-84#array_find-rfc" }
]
},
{
name: "array_any()",
description: "Checks if at least one array element satisfies a callback function.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.array-any.php" },
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/array_find" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/array_find-array_find_key-array_any-array_all" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-in-php-84#array_find-rfc" }
]
},
{
name: "array_find()",
description: "Returns the first element satisfying a callback function.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.array-find.php" },
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/array_find" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/array_find-array_find_key-array_any-array_all" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/array-find-in-php-84" }
]
},
{
name: "array_find_key()",
description: "Returns the key of the first element satisfying a callback function.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/function.array-find-key.php" },
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/array_find" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/array_find-array_find_key-array_any-array_all" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/array-find-in-php-84" }
]
},
{
name: "Implicit Nullable Types (deprecation)",
description: "A typed variable with a default null value would be made nullable automatically - this behaviour is now deprecated and will be removed in PHP 9.",
keywords: [],
added: "5.6",
deprecated: "8.4",
removed: null,
resources: [
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-in-php-84#implicit-nullable-types-deprecation" },
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/deprecate-implicitly-nullable-types" },
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated" },
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.deprecated.php#migration84.deprecated.core.implicitly-nullable-parameter" }
]
},
{
name: "DOM HTML5 support",
description: "PHP 8.4 adds a `\Dom\HTMLDocument` class which is able to parse HTML5 code properly. The old `\DOMDocument` class is still available for backwards compatibility.",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Manual", url: "https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.dom" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-in-php-84#new-html5-support-rfc" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/html-5-in-php-84" }
]
},
{
name: "JIT changes",
description: "PHP 8.4 changes the way the JIT is enabled to use `opcache.jit=disable`",
keywords: [],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP RFC", url: "https://wiki.php.net/rfc/jit_config_defaults" },
{ name: "Stitcher.io Blog", url: "https://stitcher.io/blog/new-in-php-84#jit-changes-rfc" }
]
},
{
name: "Sodium: AEGIS-128L and AEGIS256 support",
description: "The Sodium extension in PHP 8.4 supports AEGIS-128L and AEGIS256 encryption algorithms if the Sodium extension is compiled with libsodium 1.0.19 or later.",
keywords: ["security", "encryption", "cryptography"],
added: "8.4",
deprecated: null,
removed: null,
resources: [
{ name: "PHP Watch", url: "https://php.watch/versions/8.4/sodium-aegis-encryption-support" }
]
},
{
name: "mb_str_pad",
description:
"The mbstring equivalent of `str_pad`.",
keywords: ["string", "mbstring", "multibyte"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "RFC: mb_str_pad",
url: "https://wiki.php.net/rfc/mb_str_pad",
},
{
name: "New mb_str_pad function - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#new-mb_str_pad-function-rfc",
},
],
},
{
name: "Anonymous readonly classes",
description:
"Anonymous classes can now be marked as readonly.",
keywords: ["objects", "classes", "readonly"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "Anonymous readonly classes - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#anonymous-readonly-classes-upgrading",
},
],
},
{
name: "#[Override] attribute",
description:
"Mark a method as overriding a parent method using the #[Override] attribute.",
keywords: ["objects", "methods", "inheritance", "attributes"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "RFC: Marking overridden methods",
url: "https://wiki.php.net/rfc/marking_overriden_methods",
},
{
name: "#[Override] attribute - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#%23%5Boverride%5D-attribute-rfc",
},
],
},
{
name: "Reinitializing readonly properties when cloning objects",
description:
"PHP 8.3 adds the possibility of overwriting readonly property values while cloning an object.",
keywords: ["objects", "properties", "readonly", "clone"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "RFC: Readonly amendments",
url: "https://wiki.php.net/rfc/readonly_amendments",
},
{
name: "Readonly amendments - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#readonly-amendments-rfc",
},
{
name: "Cloning readonly properties in PHP 8.3 - Stitcher.io",
url: "https://stitcher.io/blog/cloning-readonly-properties-in-php-83",
}
],
},
{
name: "Randomizer::nextFloat",
description:
"Generates a random float between 0 and 1, where 1 is excluded.",
keywords: ["random", "randomizer", "floats", "numbers"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "RFC: Randomizer Additions",
url: "https://wiki.php.net/rfc/randomizer_additions",
},
{
name: "Randomizer additions - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#randomizer-additions-rfc",
},
{
name: "Random extension: New \Random\Randomizer::getFloat() and nextFloat() methods - PHP.Watch",
url: "https://php.watch/versions/8.3/Randomizer-getFloat-nextFloat",
}
],
},
{
name: "Randomizer::getFloat",
description:
"Generate a random float value.",
keywords: ["random", "randomizer", "floats", "numbers"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "RFC: Randomizer Additions",
url: "https://wiki.php.net/rfc/randomizer_additions",
},
{
name: "Randomizer additions - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#randomizer-additions-rfc",
},
{
name: "Random extension: New \Random\Randomizer::getFloat() and nextFloat() methods - PHP.Watch",
url: "https://php.watch/versions/8.3/Randomizer-getFloat-nextFloat",
}
],
},
{
name: "Randomizer::getBytesFromString",
description:
"Generate a string with a given length that consists of randomly selected bytes from a given string.",
keywords: ["random", "randomizer"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "RFC: Randomizer Additions",
url: "https://wiki.php.net/rfc/randomizer_additions",
},
{
name: "Randomizer additions - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#randomizer-additions-rfc",
},
{
name: "Random extension: New \Random\Randomizer::getBytesFromString method - PHP.Watch",
url: "https://php.watch/versions/8.3/Randomizer-getBytesFromString",
}
],
},
{
name: "Dynamic class constant and enum fetch with MyClass::{$constName}",
description:
"PHP 8.3 and later supports fetching class constants and Enum objects with a variable name using `MyClass::{$constName}`",
keywords: ["constants", "enums"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "RFC: Dynamic class constant fetch",
url: "https://wiki.php.net/rfc/dynamic_class_constant_fetch",
},
{
name: "Dynamic class constant fetch - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#dynamic-class-constant-fetch-rfc",
},
{
name: "Dynamic class constant and Enum member fetch support - PHP.Watch",
url: "https://php.watch/versions/8.3/dynamic-class-const-enum-member-syntax-support",
}
],
},
{
name: "json_validate",
description:
"Returns true if the string passed contains a valid json, otherwise returns false.",
keywords: ["JSON", "validation"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "RFC: json_validate",
url: "https://wiki.php.net/rfc/json_validate",
},
{
name: "The new json_validate() function - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#the-new-json_validate()-function-rfc",
},
{
name: "Added json_validate function - PHP.Watch",
url: "https://php.watch/versions/8.3/json_validate",
}
],
},
{
name: "Typed Class Constants",
description:
"PHP 8.3 and later support declaring a type for PHP Class constants.",
keywords: ["types", "typehints", "constants", "classes"],
added: "8.3",
deprecated: null,
removed: null,
resources: [
{
name: "RFC: Typed class constants",
url: "https://wiki.php.net/rfc/typed_class_constants",
},
{
name: "Typed Class Constants - PHP.Watch",
url: "https://php.watch/versions/8.3/typed-constants",
},
{
name: "Typed class constants - Stitcher.io",
url: "https://stitcher.io/blog/new-in-php-83#typed-class-constants-rfc",
}
],
},
{
name: "openssl_cipher_key_length",
description:
"Gets the cipher key length",
keywords: ["openssl", "encryption", "security", "ssl"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: openssl_cipher_key_length",
url: "https://www.php.net/manual/en/function.openssl-cipher-key-length.php",
}
],
},
{
name: "sodium_crypto_stream_xchacha20_xor_ic",
description:
"Encrypts a message using a nonce and a secret key (no authentication)",
keywords: ["sodium", "encryption", "security", "crypto", "cryptography"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: sodium_crypto_stream_xchacha20_xor_ic",
url: "https://www.php.net/manual/en/function.sodium-crypto-stream-xchacha20-xor-ic.php",
}
],
},
{
name: "libxml_get_external_entity_loader",
description:
"Get external entity loader previously installed by libxml_set_external_entity_loader().",
keywords: ["xml"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: libxml_get_external_entity_loader",
url: "https://www.php.net/manual/en/function.libxml-get-external-entity-loader.php",
}
],
},
{
name: "libxml_get_external_entity_loader",
description:
"Get external entity loader previously installed by libxml_set_external_entity_loader().",
keywords: ["xml"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: libxml_get_external_entity_loader",
url: "https://www.php.net/manual/en/function.libxml-get-external-entity-loader.php",
}
],
},
{
name: "ini_parse_quantity",
description:
"Returns the interpreted size in bytes on success from an ini shorthand.",
keywords: ["ini", "php.ini"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: ini_parse_quantity",
url: "https://www.php.net/manual/en/function.ini-parse-quantity.php",
}
],
},
{
name: "curl_upkeep",
description:
"Performs any connection upkeep checks.",
keywords: ["curl", "connection", "http"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: curl_upkeep",
url: "https://www.php.net/manual/en/function.curl_upkeep.php",
}
],
},
{
name: "ReflectionMethod::hasPrototype",
description:
"Returns whether a method has a prototype.",
keywords: ["reflection", "functions", "methods"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: ReflectionMethod::hasPrototype",
url: "https://www.php.net/manual/en/reflectionmethod.hasprototype.php",
}
],
},
{
name: "ReflectionFunction::isAnonymous",
description:
"Checks if a function is anonymous.",
keywords: ["reflection", "functions"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: ReflectionFunction::isAnonymous",
url: "https://www.php.net/manual/en/reflectionfunction.isanonymous.php",
}
],
},
{
name: "ZipArchive::clearError",
description:
"Clear the status error message, system and/or zip messages",
keywords: ["zip", "errors"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: ZipArchive::clearError",
url: "https://www.php.net/manual/en/ziparchive.clearerror.php",
}
],
},
{
name: "ZipArchive::getStreamName",
description:
"Get a file handler to the entry defined by its name.",
keywords: ["zip", "streams"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: ZipArchive::getStreamName",
url: "https://www.php.net/manual/en/ziparchive.getstreamname.php",
}
],
},
{
name: "ZipArchive::getStreamIndex",
description:
"Get a file handler to the entry defined by its index.",
keywords: ["zip", "streams"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: ZipArchive::getStreamIndex",
url: "https://www.php.net/manual/en/ziparchive.getstreamindex.php",
}
],
},
{
name: "New mysqli_execute_query function and mysqli::execute_query method.",
description:
"In PHP 8.2, the MySQLi extension provides a more straight-forward approach to prepare, bind, execute, and retrieve results from SQL.",
keywords: ["mysql", "mysqli", "extensions", "database"],
added: "8.2",
deprecated: null,
removed: null,
resources: [
{
name: "Docs: mysqli_execute_query",
url: "https://www.php.net/manual/en/mysqli.execute-query.php",