3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(string $arg) { return $arg; } } $foo = new Foo(); try { var_dump($foo->bar(-1)); } 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.00716.63
8.3.50.0080.01021.99
8.3.40.0000.01418.67
8.3.30.0110.00718.58
8.3.20.0000.00820.39
8.3.10.0070.00023.53
8.3.00.0040.00419.25
8.2.180.0120.00616.75
8.2.170.0070.01022.96
8.2.160.0170.00020.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00817.50
8.2.120.0040.00426.35
8.2.110.0060.00322.17
8.2.100.0000.01117.91
8.2.90.0030.00519.19
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00419.28
8.2.30.0070.00020.65
8.2.20.0080.00017.67
8.2.10.0000.00717.87
8.2.00.0040.00418.05
8.1.280.0070.01425.92
8.1.270.0090.00023.96
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0080.00022.47
8.1.230.0040.00817.79
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00817.09
8.1.180.0080.00018.10
8.1.170.0030.00618.79
8.1.160.0040.00421.96
8.1.150.0070.00018.79
8.1.140.0030.00619.50
8.1.130.0000.00717.60
8.1.120.0060.00317.47
8.1.110.0000.00717.35
8.1.100.0040.00417.29
8.1.90.0050.00317.30
8.1.80.0000.00817.29
8.1.70.0070.00017.37
8.1.60.0060.00317.61
8.1.50.0080.00017.52
8.1.40.0080.00017.48
8.1.30.0070.00417.59
8.1.20.0040.00417.59
8.1.10.0040.00417.47
8.1.00.0040.00417.51
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.43
8.0.270.0000.00717.19
8.0.260.0040.00417.05
8.0.250.0030.00317.00
8.0.240.0080.00016.79
8.0.230.0070.00016.95
8.0.220.0050.00216.88
8.0.210.0090.00016.88
8.0.200.0000.00716.96
8.0.190.0070.00016.86
8.0.180.0040.00416.96
8.0.170.0040.00416.90
8.0.160.0000.00716.89
8.0.150.0030.00316.80
8.0.140.0070.00016.84
8.0.130.0000.00713.28
8.0.120.0060.00316.75
8.0.110.0050.00316.86
8.0.100.0030.00516.76
8.0.90.0040.00316.79
8.0.80.0040.01116.87
8.0.70.0000.00716.72
8.0.60.0030.00616.92
8.0.50.0000.00816.74
8.0.30.0050.01216.94
8.0.20.0120.00917.40
8.0.10.0000.00817.00
8.0.00.0140.00316.60
7.4.330.0000.00516.67
7.4.320.0030.00316.56
7.4.300.0060.00016.51
7.4.290.0030.00316.64
7.4.280.0000.00716.39
7.4.270.0060.00016.50
7.4.260.0040.00416.44
7.4.250.0070.00016.37
7.4.240.0020.00516.51
7.4.230.0030.00316.32
7.4.220.0130.00316.58
7.4.210.0140.00016.70
7.4.200.0040.00416.68
7.4.160.0070.00716.33
7.4.150.0090.00917.40
7.4.140.0100.01317.86
7.4.130.0110.00616.47
7.4.120.0110.00716.41
7.4.110.0080.01216.39
7.4.100.0060.01016.50
7.4.90.0140.00316.49
7.4.80.0120.00519.39
7.4.70.0080.00816.42
7.4.60.0060.00916.34
7.4.50.0110.00416.27
7.4.40.0140.00316.67
7.4.30.0100.00616.45
7.4.00.0090.00614.82
7.3.330.0000.00813.31
7.3.320.0030.00313.21
7.3.310.0000.00716.27
7.3.300.0070.00016.14
7.3.290.0080.00716.22
7.3.280.0070.01116.29
7.3.270.0090.00917.40
7.3.260.0030.01316.48
7.3.250.0120.00816.37
7.3.240.0100.00616.37
7.3.230.0160.00616.41
7.3.210.0030.01316.23
7.3.200.0170.00616.20
7.3.190.0130.00316.43
7.3.180.0060.01016.37
7.3.170.0030.01416.41
7.3.160.0030.01616.32
7.3.10.0070.00716.57
7.3.00.0080.00616.63
7.2.330.0060.01316.52
7.2.320.0100.01316.59
7.2.310.0120.00416.35
7.2.300.0070.01016.33
7.2.290.0060.01216.71
7.2.130.0040.00416.77
7.2.120.0060.00616.84
7.2.110.0080.00416.89
7.2.100.0000.00916.60
7.2.90.0030.00916.80
7.2.80.0000.00917.00
7.2.70.0060.00617.02
7.2.60.0000.01516.75
7.2.50.0030.00916.71
7.2.40.0080.00417.01
7.2.30.0030.01016.68
7.2.20.0060.00316.70
7.2.10.0000.00916.93
7.2.00.0050.00818.03
7.1.250.0080.00315.64
7.1.200.0120.00015.80
7.1.100.0060.00917.85
7.1.70.0070.00717.02
7.1.60.0120.01219.36
7.1.50.0030.01016.83
7.1.00.0000.08022.48
7.0.200.0040.00416.54
7.0.60.0170.06719.93
7.0.50.0030.04017.95
7.0.40.0100.08320.26
7.0.30.0130.04320.26
7.0.20.0370.07320.12
7.0.10.0130.08020.19
7.0.00.0100.08320.11
5.6.280.0000.03321.08
5.6.210.0200.07720.48
5.6.200.0070.05018.15
5.6.190.0070.05320.77
5.6.180.0570.06320.64
5.6.170.0200.04020.59
5.6.160.0030.04020.54
5.6.150.0000.05318.14
5.6.140.0070.08018.27
5.6.130.0100.06318.17
5.6.120.0030.07720.92
5.6.110.0170.07320.98
5.6.100.0000.08721.11
5.6.90.0100.05720.97
5.6.80.0100.08320.40
5.5.350.3770.03720.35
5.5.340.0070.03717.98
5.5.330.0070.07020.21
5.5.320.0070.03720.28
5.5.310.0330.05020.32
5.5.300.0030.07717.97
5.5.290.0100.07718.02
5.5.280.0130.07020.89
5.5.270.0030.05020.84
5.5.260.0070.08020.88
5.5.250.0000.05020.55
5.5.240.0270.07320.15

preferences:
55.47 ms | 401 KiB | 5 Q