3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(\array $a) {} foo([]); // Fatal error: Uncaught TypeError: foo(): // Argument #1 ($a) must be of type array, array given ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.30.0070.01118.14
8.5.20.0110.00720.27
8.5.10.0130.00816.73
8.5.00.0110.01320.08
8.4.180.0160.00721.94
8.4.170.0110.01323.82
8.4.160.0110.01123.90
8.4.150.0060.00616.93
8.4.140.0130.00717.67
8.4.130.0090.01018.69
8.4.120.0120.00823.84
8.4.110.0130.00718.09
8.4.100.0030.00619.00
8.4.90.0080.01120.34
8.4.80.0150.00518.66
8.4.70.0200.00617.63
8.4.60.0140.00317.52
8.4.50.0110.00617.84
8.4.40.0190.00317.42
8.4.30.0190.00417.44
8.4.20.0220.00417.66
8.4.10.0140.00717.80
8.3.300.0150.00520.77
8.3.290.0120.00720.80
8.3.280.0110.00918.38
8.3.270.0110.00816.45
8.3.260.0090.01016.58
8.3.250.0100.00819.03
8.3.240.0080.00517.14
8.3.230.0090.00916.91
8.3.220.0040.00318.87
8.3.210.0050.00316.66
8.3.200.0150.00316.58
8.3.190.0140.00416.50
8.3.180.0170.00316.25
8.3.170.0130.00616.29
8.3.160.0210.00016.45
8.3.150.0180.00316.36
8.3.140.0160.00416.20
8.3.130.0130.00416.57
8.3.120.0150.00316.41
8.3.110.0150.00516.35
8.3.100.0170.00216.20
8.3.90.0160.00416.37
8.3.80.0140.00516.55
8.3.70.0190.00416.20
8.3.60.0190.00316.64
8.3.50.0160.00616.52
8.3.40.0180.00417.44
8.3.30.0130.00517.47
8.3.20.0110.00617.29
8.3.10.0130.00317.60
8.3.00.0090.00317.45
8.2.300.0110.00918.75
8.2.290.0120.00620.19
8.2.280.0100.00516.44
8.2.270.0160.00316.41
8.2.260.0110.00516.51
8.2.250.0130.00416.56
8.2.240.0140.00416.60
8.2.230.0110.00616.46
8.2.220.0150.00316.52
8.2.210.0140.00216.36
8.2.200.0160.00516.50
8.2.190.0120.00416.32
8.2.180.0150.00216.29
8.2.170.0160.00317.34
8.2.160.0170.00417.27
8.2.150.0150.00417.31
8.2.140.0160.00317.18
8.2.130.0220.00317.45
8.2.120.0160.00317.09
8.2.110.0150.00417.55
8.2.100.0130.00517.50
8.2.90.0220.00617.40
8.2.80.0150.00517.34
8.2.70.0210.00417.27
8.2.60.0140.00517.38
8.2.50.0150.00417.45
8.2.40.0190.00917.74
8.2.30.0240.00817.22
8.2.20.0120.00817.48
8.2.10.0160.00617.50
8.2.00.0120.00517.38
8.1.340.0120.01017.70

preferences:
42.75 ms | 859 KiB | 5 Q