3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __toString() { static $i = 0; return (string) $i++; } } function test(string $foo = new Foo()) { var_dump($foo); } test(); test(); test();

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.4.120.0100.00923.98
8.4.110.0130.00819.70
8.4.100.0070.00819.19
8.4.90.0140.00620.50
8.4.80.0030.00518.55
8.4.70.0150.00517.91
8.4.60.0080.00818.93
8.4.50.0130.00818.48
8.4.40.0060.01319.30
8.4.30.0160.00320.74
8.4.20.0070.01319.70
8.4.10.0040.00423.61
8.3.250.0110.00819.08
8.3.240.0100.00716.96
8.3.230.0120.00716.72
8.3.220.0050.00319.09
8.3.210.0120.00316.92
8.3.200.0050.00416.53
8.3.190.0090.00917.03
8.3.180.0130.00717.39
8.3.170.0100.01020.68
8.3.160.0120.00616.48
8.3.150.0120.00317.40
8.3.140.0080.00016.68
8.3.130.0030.00716.81
8.3.120.0060.00319.04
8.3.110.0060.00322.58
8.3.100.0030.00620.94
8.3.90.0000.00820.94
8.3.50.0090.00020.94
8.2.290.0080.01120.45
8.2.280.0100.00918.23
8.2.270.0070.01117.24
8.2.260.0000.01418.23
8.2.250.0040.00416.78
8.2.240.0070.00417.27
8.2.230.0040.00420.94
8.2.220.0040.00422.58
8.2.210.0050.00322.58
8.2.160.0120.00922.96
8.1.330.0120.00622.10
8.1.320.0090.01115.79
8.1.310.0090.00016.25
8.1.300.0120.00418.49
8.1.120.0130.00217.47
8.1.110.0130.00317.40
8.1.100.0080.00717.45
8.1.90.0110.00417.50
8.1.80.0100.00517.47
8.1.70.0140.00217.56
8.1.60.0090.00817.60
8.1.50.0020.01517.52
8.1.40.0110.00617.58
8.1.30.0120.00617.64
8.1.20.0120.00517.72
8.1.10.0130.00517.54
8.1.00.0140.00417.51
8.0.250.0120.00316.80
8.0.240.0110.00416.78
8.0.230.0120.00316.73
8.0.220.0110.00416.67
8.0.210.0110.00416.76
8.0.200.0140.00116.78
8.0.190.0110.00516.76
8.0.180.0150.00016.76
8.0.170.0080.00716.79
8.0.160.0100.00616.70
8.0.150.0080.00816.76
8.0.140.0130.00216.72
8.0.130.0080.00716.65
8.0.120.0110.00316.66
8.0.110.0120.00116.68
8.0.100.0120.00216.70
8.0.90.0120.00216.70
8.0.80.0090.00516.62
8.0.70.0130.00216.67
8.0.60.0150.00016.61
8.0.50.0100.00516.68
8.0.30.0080.00616.71
8.0.20.0100.00216.76
8.0.10.0070.00516.75
7.4.330.0050.00514.29
7.4.320.0080.00416.14
7.4.300.0090.00316.18
7.4.290.0090.00216.23
7.4.280.0080.00416.06
7.4.270.0100.00216.21
7.4.260.0050.00816.19
7.4.250.0090.00416.11
7.4.240.0090.00316.24
7.4.230.0000.00916.04
7.4.220.0020.00616.98
7.4.210.0040.00316.07
7.4.200.0000.00716.13
7.4.190.0070.00116.17
7.4.180.0070.00316.23
7.4.160.0100.00316.24
7.4.150.0030.00416.17
7.4.140.0030.00417.05
7.4.130.0050.00417.05
7.4.120.0020.00717.06
7.4.110.0050.00416.90
7.4.100.0060.00316.95
7.4.90.0040.00516.86
7.4.80.0030.00517.13
7.4.70.0050.00317.06
7.4.60.0030.00516.82
7.4.50.0070.00216.90
7.4.40.0040.00416.93
7.4.30.0070.00217.85
7.4.20.0030.00617.05
7.4.10.0060.00316.92
7.4.00.0100.00520.00

preferences:
28.28 ms | 403 KiB | 5 Q