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('43 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.0040.01216.75
8.3.50.0070.00717.93
8.3.40.0100.00318.89
8.3.30.0120.00918.70
8.3.20.0080.00020.39
8.3.10.0070.00023.66
8.3.00.0000.00819.50
8.2.180.0120.00618.42
8.2.170.0120.00322.96
8.2.160.0090.00620.38
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00419.36
8.2.120.0040.00426.35
8.2.110.0070.00319.31
8.2.100.0080.00317.84
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0090.00417.91
8.2.50.0040.00418.07
8.2.40.0090.00019.34
8.2.30.0050.00320.50
8.2.20.0000.01017.75
8.2.10.0000.00717.98
8.2.00.0000.00717.99
8.1.280.0110.00425.92
8.1.270.0030.00623.92
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0000.00921.32
8.1.230.0080.00317.52
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0080.00017.35
8.1.180.0050.00718.10
8.1.170.0040.00420.20
8.1.160.0080.00022.06
8.1.150.0000.00718.76
8.1.140.0040.00419.58
8.1.130.0030.00317.70
8.1.120.0030.00717.38
8.1.110.0070.00017.45
8.1.100.0050.00317.46
8.1.90.0040.00417.41
8.1.80.0000.00717.34
8.1.70.0030.00317.32
8.1.60.0060.00317.61
8.1.50.0000.00817.55
8.1.40.0040.00417.36
8.1.30.0090.00317.52
8.1.20.0040.00417.50
8.1.10.0000.00717.62
8.1.00.0000.00817.49
8.0.300.0000.00818.77
8.0.290.0000.00716.88
8.0.280.0000.00718.46
8.0.270.0030.00317.13
8.0.260.0000.00817.36
8.0.250.0030.00316.94
8.0.240.0030.00316.95
8.0.230.0040.00417.07
8.0.220.0030.00616.83
8.0.210.0060.00316.93
8.0.200.0060.00316.90
8.0.190.0070.00016.91
8.0.180.0040.00416.98
8.0.170.0030.00516.97
8.0.160.0080.00016.96
8.0.150.0030.00516.91
8.0.140.0040.00416.87
8.0.130.0000.00813.39
8.0.120.0040.00417.00
8.0.110.0040.00416.99
8.0.100.0000.00716.93
8.0.90.0000.00717.00
8.0.80.0150.00016.94
8.0.70.0040.00416.83
8.0.60.0000.00816.74
8.0.50.0000.00816.90
8.0.30.0090.00917.27
8.0.20.0110.01717.40
8.0.10.0050.00217.05
8.0.00.0050.01216.70
7.4.330.0020.00216.79
7.4.320.0070.00016.43
7.4.300.0030.00316.57
7.4.290.0000.00716.61
7.4.280.0040.00416.59
7.4.270.0020.00516.60
7.4.260.0030.00516.52
7.4.250.0070.00016.62
7.4.240.0020.00516.54
7.4.230.0030.00316.42
7.4.220.0090.00916.62
7.4.210.0060.00916.60
7.4.200.0070.00016.43
7.4.160.0100.00616.49
7.4.150.0090.00917.40
7.4.140.0050.01317.86
7.4.130.0100.00716.54
7.4.120.0160.00516.54
7.4.110.0180.00416.49
7.4.100.0070.01016.66
7.4.90.0030.01316.50
7.4.80.0130.00319.39
7.4.70.0060.01316.63
7.4.60.0160.00016.45
7.4.50.0080.00816.41
7.4.40.0120.00616.39
7.4.30.0140.00316.55
7.4.00.0070.00915.16
7.3.330.0030.00513.16
7.3.320.0040.00413.30
7.3.310.0070.00016.21
7.3.300.0030.00316.14
7.3.290.0070.01016.32
7.3.280.0120.00616.27
7.3.270.0200.00317.40
7.3.260.0160.00016.39
7.3.250.0090.01016.32
7.3.240.0090.00916.34
7.3.230.0030.01316.55
7.3.210.0090.00616.26
7.3.200.0100.00616.49
7.3.190.0070.01016.23
7.3.180.0080.01116.30
7.3.170.0110.00716.27
7.3.160.0090.00916.28
7.3.120.0030.01514.82
7.3.110.0070.01114.65
7.3.100.0030.01314.86
7.3.90.0070.01014.80
7.3.80.0110.00714.67
7.3.70.0030.00914.70
7.3.60.0070.00714.88
7.3.50.0030.01214.82
7.3.40.0090.00614.61
7.3.30.0070.00414.80
7.3.20.0060.01216.41
7.3.10.0030.00916.66
7.3.00.0070.01016.54
7.2.330.0130.00316.53
7.2.320.0100.01316.64
7.2.310.0110.00616.55
7.2.300.0060.01116.50
7.2.290.0160.00016.63
7.2.250.0040.01415.11
7.2.240.0090.00914.95
7.2.230.0090.00915.04
7.2.220.0070.01014.77
7.2.210.0030.01315.06
7.2.200.0000.01215.10
7.2.190.0090.00914.71
7.2.180.0040.01114.96
7.2.170.0090.00314.98
7.2.60.0030.00916.58
7.2.00.0060.01019.45
7.1.330.0060.00615.81
7.1.320.0070.00315.50
7.1.310.0090.00615.53
7.1.300.0030.01315.71
7.1.290.0090.00315.67
7.1.280.0000.01315.67
7.1.270.0080.00615.62
7.1.260.0070.00715.68
7.1.200.0070.00715.62
7.1.100.0230.00716.11
7.1.70.0060.00617.21
7.1.60.0150.00919.36
7.1.50.0090.00916.55
7.1.00.0170.06322.35
7.0.200.0060.00316.79
7.0.60.0200.06720.00
7.0.50.0070.04317.72
7.0.40.0030.05720.18
7.0.30.0170.04020.21
7.0.20.0270.06020.06
7.0.10.0070.09020.09
7.0.00.0100.04720.16
5.6.280.0000.03321.13
5.6.210.0070.05720.52
5.6.200.0070.08318.16
5.6.190.0070.04020.50
5.6.180.0400.05320.52
5.6.170.0200.04020.57
5.6.160.0070.04020.44
5.6.150.0100.04718.21
5.6.140.0130.07318.18
5.6.130.0070.07318.17
5.6.120.0100.04321.14
5.6.110.0070.08321.14
5.6.100.0130.07721.04
5.6.90.0100.06021.00
5.6.80.0170.07320.40
5.5.350.4270.05320.45
5.5.340.0130.07717.97
5.5.330.0100.07020.27
5.5.320.0000.09320.23
5.5.310.0170.06320.36
5.5.300.0070.07717.95
5.5.290.0070.08717.98
5.5.280.0130.07720.74
5.5.270.0000.09320.88
5.5.260.0170.08320.97
5.5.250.0030.06320.80
5.5.240.0200.08320.15

preferences:
59.21 ms | 400 KiB | 5 Q