3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(int $arg) { return $arg; } } $foo = new Foo(); try { var_dump($foo->bar('0 foo')); } catch (Error $e) { echo '!!!' . $e->getMessage() . '!!!'; }

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.0070.01116.73
8.3.50.0120.00621.92
8.3.40.0120.00918.91
8.3.30.0120.00318.70
8.3.20.0050.00220.35
8.3.10.0080.00023.48
8.3.00.0090.00019.25
8.2.180.0120.00618.54
8.2.170.0110.00722.96
8.2.160.0030.01019.46
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0030.00617.50
8.2.120.0040.00426.35
8.2.110.0040.00719.27
8.2.100.0130.00017.97
8.2.90.0040.00419.31
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0170.00317.54
8.2.50.0000.00818.07
8.2.40.0080.00019.34
8.2.30.0070.00520.63
8.2.20.0030.00617.68
8.2.10.0000.00818.12
8.2.00.0070.00018.05
8.1.280.0120.00625.92
8.1.270.0030.00623.96
8.1.260.0050.00228.09
8.1.250.0070.00028.09
8.1.240.0090.00022.45
8.1.230.0060.00617.42
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0060.00317.35
8.1.180.0110.00018.10
8.1.170.0040.00420.05
8.1.160.0030.00321.93
8.1.150.0040.00418.80
8.1.140.0040.00419.48
8.1.130.0030.00317.61
8.1.120.0070.00417.44
8.1.110.0000.00717.37
8.1.100.0040.00417.53
8.1.90.0000.00717.41
8.1.80.0050.00217.40
8.1.70.0000.00717.36
8.1.60.0070.00317.47
8.1.50.0030.00517.54
8.1.40.0080.00017.46
8.1.30.0050.00517.54
8.1.20.0000.00717.63
8.1.10.0070.00017.50
8.1.00.0000.00717.53
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0020.00517.13
8.0.260.0030.00317.25
8.0.250.0000.00616.92
8.0.240.0030.00317.04
8.0.230.0000.00917.00
8.0.220.0060.00316.87
8.0.210.0060.00316.94
8.0.200.0000.00816.92
8.0.190.0030.00516.93
8.0.180.0040.00416.83
8.0.170.0080.00016.99
8.0.160.0030.00516.95
8.0.150.0000.00716.98
8.0.140.0080.00016.82
8.0.130.0070.00013.39
8.0.120.0050.00316.90
8.0.110.0040.00416.87
8.0.100.0040.00416.93
8.0.90.0070.00016.75
8.0.80.0060.01516.84
8.0.70.0020.00517.02
8.0.60.0040.00416.93
8.0.50.0000.00716.88
8.0.30.0060.01017.04
8.0.20.0090.01217.40
8.0.10.0040.00416.79
8.0.00.0080.00916.69
7.4.330.0000.00516.69
7.4.320.0060.00016.47
7.4.300.0060.00016.57
7.4.290.0030.00316.50
7.4.280.0040.00416.35
7.4.270.0030.00316.50
7.4.260.0040.00416.50
7.4.250.0050.00316.55
7.4.240.0070.00016.57
7.4.230.0070.00016.34
7.4.220.0040.01416.63
7.4.210.0100.00316.51
7.4.200.0030.00316.71
7.4.160.0110.00716.42
7.4.150.0150.00417.40
7.4.140.0100.00817.86
7.4.130.0120.00816.41
7.4.120.0140.00416.43
7.4.110.0110.01216.52
7.4.100.0070.01116.69
7.4.90.0110.00716.51
7.4.80.0080.01119.39
7.4.70.0110.00816.60
7.4.60.0170.00016.48
7.4.50.0030.01216.28
7.4.40.0070.01016.56
7.4.30.0210.00016.48
7.4.00.0100.00315.06
7.3.330.0070.00013.30
7.3.320.0000.00713.26
7.3.310.0000.00716.31
7.3.300.0000.00716.17
7.3.290.0090.00816.25
7.3.280.0090.01016.32
7.3.270.0110.00717.40
7.3.260.0120.00316.29
7.3.250.0130.00716.38
7.3.240.0060.01416.39
7.3.230.0130.00616.46
7.3.210.0070.01016.47
7.3.200.0150.00016.38
7.3.190.0030.01316.28
7.3.180.0070.01116.45
7.3.170.0100.00716.34
7.3.160.0100.00616.27
7.2.330.0080.00916.66
7.2.320.0040.01316.64
7.2.310.0060.00916.62
7.2.300.0080.00816.42
7.2.290.0180.00316.64
7.2.60.0080.00316.61
7.2.00.0000.01219.48
7.1.200.0060.00615.84
7.1.100.0240.00316.48
7.1.70.0090.00517.16
7.1.60.0130.01319.36
7.1.50.0060.00616.73
7.1.00.0100.07022.35
7.0.200.0000.01016.73
7.0.100.0230.06719.95
7.0.90.0070.07720.00
7.0.80.0170.04019.97
7.0.70.0100.06719.95
7.0.60.0070.09020.06
7.0.50.0130.05320.35
7.0.40.0030.05720.00
7.0.30.0030.04320.11
7.0.20.0100.04020.09
7.0.10.0070.04020.04
7.0.00.0030.04720.12
5.6.280.0000.03321.01
5.6.250.0070.04320.60
5.6.240.0170.03720.64
5.6.230.0070.07720.51
5.6.220.0130.07020.62
5.6.210.0070.08320.47
5.6.200.0170.04021.11
5.6.190.0070.04020.95
5.6.180.0070.04020.94
5.6.170.0070.04020.95
5.6.160.0070.04721.01
5.6.150.0070.04021.04
5.6.140.0100.03720.96
5.6.130.0070.04021.01
5.6.120.0070.04020.98
5.6.110.0030.04321.05
5.6.100.0070.03721.04
5.6.90.0100.03721.07
5.6.80.0100.03020.39
5.6.70.0070.03720.45
5.6.60.0030.04320.37
5.6.50.0100.03320.52
5.6.40.0000.04320.41
5.6.30.0030.04320.31
5.6.20.0030.04020.43
5.6.10.0030.04020.47
5.6.00.0030.04020.37
5.5.380.0100.04320.50
5.5.370.0070.08320.37
5.5.360.0070.06320.33
5.5.350.0100.04320.40
5.5.340.0070.04020.89
5.5.330.0000.04720.89
5.5.320.0100.03720.72
5.5.310.0030.03720.81
5.5.300.0070.03720.83
5.5.290.0070.04720.89
5.5.280.0000.04720.86
5.5.270.0000.04720.82
5.5.260.0100.03720.64
5.5.250.0000.04320.68
5.5.240.0030.07020.18
5.5.230.0000.04320.26
5.5.220.0170.03320.29
5.5.210.0100.03020.30
5.5.200.0030.04020.23
5.5.190.0030.04020.22
5.5.180.0100.03020.13
5.5.160.0070.03320.27
5.5.150.0030.04020.21
5.5.140.0030.04020.08
5.5.130.0070.03720.20
5.5.120.0100.03720.15
5.5.110.0030.04020.20
5.5.100.0030.03720.08
5.5.90.0070.03720.13
5.5.80.0130.03020.07
5.5.70.0000.04020.15
5.5.60.0000.04319.93
5.5.50.0070.03720.08
5.5.40.0030.03720.09
5.5.30.0100.03320.10
5.5.20.0000.04320.15
5.5.10.0030.06320.02
5.5.00.0100.04020.03

preferences:
53.34 ms | 401 KiB | 5 Q