3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exts = get_loaded_extensions(); $total = 0; foreach ($exts as $ext) { $f = get_extension_funcs($ext); $total += count($f); } $a = get_defined_functions(); $n = count($a['internal']); $total += $n; echo $n, " / ", $total, " (", count($exts), ")";
Output for 8.3.0 - 8.3.7
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, false given in /in/IZRtS:6 Stack trace: #0 {main} thrown in /in/IZRtS on line 6
Process exited with code 255.
Output for 8.0.10 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /in/IZRtS:6 Stack trace: #0 {main} thrown in /in/IZRtS on line 6
Process exited with code 255.
Output for 8.0.0 - 8.0.9
Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, bool given in /in/IZRtS:6 Stack trace: #0 {main} thrown in /in/IZRtS on line 6
Process exited with code 255.
Output for 7.4.33
Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 955 / 1912 (26)
Output for 7.4.0 - 7.4.32
Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 1285 / 2572 (32)
Output for 7.3.32 - 7.3.33
Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 1025 / 2052 (27)
Output for 7.3.0 - 7.3.31
Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 1282 / 2566 (32)
Output for 7.2.7 - 7.2.33
Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 1271 / 2544 (32)
Output for 7.2.0 - 7.2.6
Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 Warning: count(): Parameter must be an array or an object that implements Countable in /in/IZRtS on line 6 1270 / 2542 (32)
Output for 7.1.20 - 7.1.25
1190 / 2382 (31)
Output for 7.1.5 - 7.1.10
1272 / 2546 (34)
Output for 7.1.0
1271 / 2544 (34)
Output for 7.0.14 - 7.0.20
1267 / 2536 (34)
Output for 7.0.6 - 7.0.9
1209 / 2420 (32)
Output for 7.0.0 - 7.0.5
1299 / 2600 (35)
Output for 5.6.21 - 5.6.23
1211 / 2424 (33)
Output for 5.6.4 - 5.6.20
1305 / 2612 (36)
Output for 5.6.3
1305 / 2610 (36)
Output for 5.6.1 - 5.6.2
1303 / 2606 (36)
Output for 5.6.0
1301 / 2602 (36)
Output for 5.5.35 - 5.5.37
1202 / 2404 (33)
Output for 5.5.11 - 5.5.34
1290 / 2580 (36)
Output for 5.5.8 - 5.5.10
1289 / 2578 (36)
Output for 5.5.5 - 5.5.7
1289 / 2577 (36)
Output for 5.5.1 - 5.5.4
1288 / 2575 (36)
Output for 5.5.0
1286 / 2571 (36)
Output for 5.4.24 - 5.4.45
1200 / 2400 (35)
Output for 5.4.18 - 5.4.23
1200 / 2401 (35)
Output for 5.4.15 - 5.4.17
1199 / 2399 (35)
Output for 5.4.1 - 5.4.14
1152 / 2305 (34)
Output for 5.4.0
1151 / 2303 (34)
Output for 5.3.4 - 5.3.29
1105 / 2211 (39)
Output for 5.3.3
1102 / 2205 (39)
Output for 5.3.2
1101 / 2203 (39)
Output for 5.3.0 - 5.3.1
1098 / 2197 (39)
Output for 5.2.11 - 5.2.17
1053 / 2062 (34)
Output for 5.2.4 - 5.2.10
1052 / 2060 (34)
Output for 5.2.3
1050 / 2056 (34)
Output for 5.2.1 - 5.2.2
1050 / 2057 (35)
Output for 5.2.0
1043 / 2042 (34)
Output for 5.1.4 - 5.1.6
992 / 1940 (30)
Output for 5.1.3
992 / 1940 (31)
Output for 5.1.2
987 / 1930 (31)
Output for 5.1.0 - 5.1.1
940 / 1835 (27)
Output for 5.0.5
905 / 1766 (24)
Output for 5.0.4
906 / 1768 (24)
Output for 5.0.2 - 5.0.3
906 / 1726 (24)
Output for 5.0.0 - 5.0.1
905 / 1725 (24)
Output for 4.4.3 - 4.4.9
874 / 1709 (19)
Output for 4.3.11, 4.4.0 - 4.4.2
873 / 1707 (19)
Output for 4.3.4 - 4.3.10
872 / 1705 (19)
Output for 4.3.2 - 4.3.3
843 / 1647 (19)
Output for 4.3.0 - 4.3.1
840 / 1641 (19)

preferences:
255.87 ms | 401 KiB | 368 Q