3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function () { var_dump(func_get_args()); }); try { new Foo(); } catch(Throwable $t) { var_dump($t); } if (true) { class Foo {} var_dump(new Foo()); }

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.3.60.0090.00616.50
8.3.50.0160.00317.96
8.3.40.0040.01119.34
8.3.30.0110.00418.84
8.3.20.0030.00624.18
8.3.10.0080.00024.66
8.3.00.0000.00726.16
8.2.180.0120.00625.92
8.2.170.0140.00019.04
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0100.00022.25
8.2.100.0080.00419.53
8.2.90.0030.00617.88
8.2.80.0080.00018.91
8.2.70.0030.00517.80
8.2.60.0000.00818.09
8.2.50.0000.00818.10
8.2.40.0000.00920.96
8.2.30.0000.00719.31
8.2.20.0000.00717.97
8.2.10.0040.00419.25
8.2.00.0070.00019.13
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0090.00028.09
8.1.240.0060.00322.01
8.1.230.0040.00817.82
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0100.00317.47
8.1.190.0030.00617.35
8.1.180.0000.00918.10
8.1.170.0080.00018.54
8.1.160.0000.00818.93
8.1.150.0020.00518.81
8.1.140.0040.00418.84
8.1.130.0030.00320.14
8.1.120.0040.00417.36
8.1.110.0040.00417.45
8.1.100.0000.00817.48
8.1.90.0040.00417.45
8.1.80.0090.00017.45
8.1.70.0040.00417.53
8.1.60.0080.00017.56
8.1.50.0060.00317.54
8.1.40.0060.00317.41
8.1.30.0030.00617.49
8.1.20.0040.00417.65
8.1.10.0040.00417.61
8.1.00.0030.00517.40
8.0.300.0030.00818.77
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0000.00716.86
8.0.260.0000.00618.51
8.0.250.0030.00316.89
8.0.240.0040.00416.90
8.0.230.0000.00716.88
8.0.220.0000.00817.00
8.0.210.0080.00316.91
8.0.200.0030.00316.96
8.0.190.0060.00317.05
8.0.180.0000.00717.02
8.0.170.0040.00416.98
8.0.160.0060.00316.88
8.0.150.0070.00016.94
8.0.140.0000.00816.93
8.0.130.0030.00313.37
8.0.120.0000.00817.02
8.0.110.0040.00416.94
8.0.100.0040.00416.73
8.0.90.0040.00416.80
8.0.80.0150.00416.94
8.0.70.0050.01716.97
8.0.60.0110.01116.84
8.0.50.0070.00916.87
8.0.30.0070.00616.94
8.0.20.0070.01216.97
8.0.10.0050.01417.06
8.0.00.0080.01017.07
7.4.330.0040.00015.55
7.4.320.0060.00016.42
7.4.300.0000.00716.47
7.4.290.0000.00816.52
7.4.280.0050.00516.50
7.4.270.0000.00716.50
7.4.260.0050.00013.26
7.4.250.0030.00416.57
7.4.240.0020.00516.55
7.4.230.0050.00316.63
7.4.220.0030.00616.34
7.4.210.0100.00716.54
7.4.200.0080.01316.59
7.4.190.0030.01916.61
7.4.180.0120.00516.51
7.4.160.0120.00616.62
7.4.150.0130.00616.47
7.4.140.0120.00616.45
7.4.130.0060.01116.41
7.4.120.0060.01116.43
7.4.110.0070.00816.39
7.4.100.0070.01016.51
7.4.90.0100.01116.42
7.4.80.0140.00516.45
7.4.70.0110.00816.44
7.4.60.0120.00516.43
7.4.50.0060.01016.34
7.4.40.0120.00516.35
7.4.30.0060.01116.31
7.4.20.0120.00616.42
7.4.10.0090.00816.38
7.4.00.0100.00916.45
7.3.330.0030.00516.13
7.3.320.0050.00313.14
7.3.310.0080.00016.34
7.3.300.0040.00416.21
7.3.290.0110.00716.28
7.3.280.0060.01116.26
7.3.270.0100.01016.25
7.3.260.0110.00916.27
7.3.250.0070.00716.27
7.3.240.0090.00916.31
7.3.230.0070.00916.26
7.3.220.0150.00416.25
7.3.210.0130.00416.23
7.3.200.0030.01316.24
7.3.190.0030.01616.31
7.3.180.0070.00816.27
7.3.170.0090.00816.26
7.3.160.0070.01416.29
7.3.150.0030.01516.26
7.3.140.0100.00816.32
7.3.130.0090.00816.23
7.3.120.0070.01016.28
7.3.110.0120.00516.10
7.3.100.0070.01116.15
7.3.90.0090.01216.49
7.3.80.0100.00616.26
7.3.70.0090.00716.29
7.3.60.0130.00416.38
7.3.50.0040.01216.43
7.3.40.0090.00716.40
7.3.30.0040.01216.41
7.3.20.0100.00816.42
7.3.10.0090.00816.35
7.3.00.0110.00916.28

preferences:
98.87 ms | 400 KiB | 5 Q