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(0777)); } 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.0120.00616.38
8.3.50.0030.01317.92
8.3.40.0040.01118.58
8.3.30.0090.00618.62
8.3.20.0070.00720.29
8.3.10.0050.00323.44
8.3.00.0040.00419.25
8.2.180.0040.01116.50
8.2.170.0090.00622.96
8.2.160.0060.01320.39
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0030.00817.50
8.2.120.0000.00826.35
8.2.110.0070.00320.51
8.2.100.0030.00917.91
8.2.90.0050.00319.08
8.2.80.0070.00317.97
8.2.70.0050.00317.38
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0000.00919.27
8.2.30.0000.00720.73
8.2.20.0030.00717.62
8.2.10.0080.00017.87
8.2.00.0000.00717.88
8.1.280.0070.01125.92
8.1.270.0030.00623.89
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00622.47
8.1.230.0040.00717.66
8.1.220.0020.00517.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0040.00418.65
8.1.160.0070.00021.95
8.1.150.0000.00718.82
8.1.140.0040.00419.51
8.1.130.0050.00217.68
8.1.120.0080.00017.43
8.1.110.0020.00517.38
8.1.100.0030.00317.43
8.1.90.0000.00717.41
8.1.80.0040.00417.41
8.1.70.0030.00317.27
8.1.60.0000.00817.46
8.1.50.0040.00417.53
8.1.40.0040.00417.57
8.1.30.0000.00917.48
8.1.20.0000.00717.60
8.1.10.0040.00417.61
8.1.00.0040.00417.57
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0040.00418.25
8.0.270.0030.00317.14
8.0.260.0040.00417.30
8.0.250.0070.00017.00
8.0.240.0030.00316.93
8.0.230.0000.00816.87
8.0.220.0030.00316.82
8.0.210.0030.00716.79
8.0.200.0070.00016.98
8.0.190.0040.00416.87
8.0.180.0050.00216.81
8.0.170.0040.00416.89
8.0.160.0030.00316.91
8.0.150.0040.00416.73
8.0.140.0000.00716.86
8.0.130.0030.00313.24
8.0.120.0030.00616.75
8.0.110.0000.00816.96
8.0.100.0050.00216.75
8.0.90.0070.00016.93
8.0.80.0060.00916.84
8.0.70.0000.00716.92
8.0.60.0020.00516.70
8.0.50.0040.00416.71
8.0.30.0080.00817.02
8.0.20.0100.01017.40
8.0.10.0040.00416.93
8.0.00.0100.00816.79
7.4.330.0030.00316.89
7.4.320.0000.00716.36
7.4.300.0030.00316.49
7.4.290.0040.00416.51
7.4.280.0070.00016.60
7.4.270.0060.00016.57
7.4.260.0040.00416.58
7.4.250.0040.00416.55
7.4.240.0040.00316.51
7.4.230.0000.00716.68
7.4.220.0110.01516.71
7.4.210.0130.00016.62
7.4.200.0000.00716.50
7.4.160.0120.00316.63
7.4.150.0120.01217.40
7.4.140.0130.00817.86
7.4.130.0110.00816.50
7.4.120.0090.00916.39
7.4.110.0030.01416.56
7.4.100.0100.00716.34
7.4.90.0130.00316.43
7.4.80.0090.00919.39
7.4.70.0050.01116.30
7.4.60.0060.00916.42
7.4.50.0050.00816.56
7.4.40.0100.00716.31
7.4.30.0060.01016.50
7.4.00.0030.01014.88
7.3.330.0060.00313.23
7.3.320.0070.00013.23
7.3.310.0000.00716.26
7.3.300.0000.00716.28
7.3.290.0040.01016.25
7.3.280.0050.01116.25
7.3.270.0090.00917.40
7.3.260.0060.01216.40
7.3.250.0090.01016.24
7.3.240.0040.01216.10
7.3.230.0100.00916.45
7.3.210.0150.00316.49
7.3.200.0070.01016.29
7.3.190.0090.01216.53
7.3.180.0150.00316.51
7.3.170.0130.00316.44
7.3.160.0060.01016.30
7.2.330.0080.01516.63
7.2.320.0130.00616.37
7.2.310.0100.00716.59
7.2.300.0000.01716.59
7.2.290.0100.00716.73
7.2.60.0070.00716.83
7.2.00.0040.00819.29
7.1.200.0120.00315.72
7.1.100.0000.01118.03
7.1.70.0100.01317.09
7.1.60.0070.01819.36
7.1.50.0060.01616.83
7.1.00.0030.07722.37
7.0.200.0030.00716.64
7.0.60.0070.04719.81
7.0.50.0030.07317.87
7.0.40.0030.06020.30
7.0.30.0500.06720.25
7.0.20.0270.05320.23
7.0.10.0030.04720.16
7.0.00.0170.07720.16
5.6.210.0070.04020.51
5.6.200.0100.08018.29
5.6.190.0000.09320.62
5.6.180.0470.06720.52
5.6.170.0170.04320.48
5.6.160.0030.04020.46
5.6.150.0070.08018.25
5.6.140.0030.06318.33
5.6.130.0130.08018.17
5.6.120.0070.08320.99
5.6.110.0070.08721.11
5.6.100.0030.08021.02
5.6.90.0100.08020.99
5.6.80.0000.08720.40
5.5.350.4230.04020.42
5.5.340.0070.04017.98
5.5.330.0130.05020.40
5.5.320.0070.03720.34
5.5.310.0270.07320.18
5.5.300.0070.07018.08
5.5.290.0070.07717.95
5.5.280.0130.07320.79
5.5.270.0100.08320.73
5.5.260.0030.04320.79
5.5.250.0030.08320.80
5.5.240.0300.07020.19

preferences:
53.18 ms | 400 KiB | 5 Q