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('foo')); } catch (Exception $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.0180.00316.63
8.3.50.0090.00921.91
8.3.40.0070.00718.66
8.3.30.0120.00418.71
8.3.20.0070.00020.16
8.3.10.0040.00423.48
8.3.00.0050.00319.38
8.2.180.0030.01218.41
8.2.170.0040.01122.96
8.2.160.0150.00320.52
8.2.150.0080.00025.66
8.2.140.0030.00524.66
8.2.130.0060.00319.23
8.2.120.0000.00726.35
8.2.110.0030.00619.16
8.2.100.0040.00817.84
8.2.90.0040.00419.08
8.2.80.0050.00317.97
8.2.70.0040.00417.38
8.2.60.0030.00917.91
8.2.50.0000.00818.07
8.2.40.0030.00519.30
8.2.30.0050.00320.68
8.2.20.0050.00317.78
8.2.10.0040.00417.98
8.2.00.0040.00417.99
8.1.280.0120.00325.92
8.1.270.0080.00023.85
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0060.00322.14
8.1.230.0040.00720.76
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.00
8.1.190.0030.00517.23
8.1.180.0080.00418.10
8.1.170.0030.00620.24
8.1.160.0000.00721.87
8.1.150.0040.00418.76
8.1.140.0000.00819.43
8.1.130.0000.00817.64
8.1.120.0070.00317.47
8.1.110.0040.00417.31
8.1.100.0030.00517.38
8.1.90.0050.00317.23
8.1.80.0040.00417.37
8.1.70.0000.00717.38
8.1.60.0030.00617.60
8.1.50.0040.00417.49
8.1.40.0030.00517.50
8.1.30.0060.00617.68
8.1.20.0040.00417.55
8.1.10.0000.00717.57
8.1.00.0000.00717.52
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0070.00018.43
8.0.270.0000.00717.18
8.0.260.0030.00317.11
8.0.250.0000.00716.95
8.0.240.0000.00616.94
8.0.230.0000.00716.78
8.0.220.0100.00016.81
8.0.210.0060.00316.89
8.0.200.0060.00316.96
8.0.190.0040.00416.91
8.0.180.0040.00416.95
8.0.170.0040.00416.97
8.0.160.0030.00316.84
8.0.150.0000.00716.78
8.0.140.0080.00016.84
8.0.130.0030.00313.29
8.0.120.0000.00716.85
8.0.110.0040.00416.87
8.0.100.0000.00716.83
8.0.90.0040.00416.87
8.0.80.0120.00916.86
8.0.70.0070.00016.88
8.0.60.0040.00416.75
8.0.50.0040.00416.91
8.0.30.0110.00917.14
8.0.20.0080.01017.40
8.0.10.0040.00416.88
8.0.00.0090.00916.72
7.4.330.0000.00516.67
7.4.320.0000.00616.58
7.4.300.0030.00316.57
7.4.290.0030.00316.59
7.4.280.0000.00716.60
7.4.270.0050.00316.48
7.4.260.0040.00416.60
7.4.250.0080.00016.56
7.4.240.0050.00216.56
7.4.230.0030.00316.50
7.4.220.0110.00716.62
7.4.210.0030.01416.64
7.4.200.0070.00016.44
7.4.160.0030.01316.46
7.4.150.0130.00317.40
7.4.140.0100.01317.86
7.4.130.0070.01016.46
7.4.120.0100.01216.51
7.4.110.0130.00316.57
7.4.100.0140.00316.68
7.4.90.0090.00916.36
7.4.80.0000.01719.39
7.4.70.0160.00316.28
7.4.60.0060.01016.46
7.4.50.0000.01116.24
7.4.40.0090.00616.59
7.4.30.0150.00816.38
7.4.00.0000.01514.98
7.3.330.0040.00313.37
7.3.320.0030.00313.39
7.3.310.0030.00316.25
7.3.300.0030.00316.37
7.3.290.0070.01016.35
7.3.280.0080.00816.34
7.3.270.0150.00317.40
7.3.260.0110.00616.37
7.3.250.0070.01216.39
7.3.240.0110.01016.33
7.3.230.0180.00416.39
7.3.210.0090.00816.30
7.3.200.0110.01016.41
7.3.190.0090.00916.45
7.3.180.0070.01316.33
7.3.170.0060.01616.42
7.3.160.0060.01016.51
7.3.10.0070.00716.60
7.3.00.0120.00616.66
7.2.330.0140.00316.49
7.2.320.0060.01216.37
7.2.310.0130.00316.51
7.2.300.0100.00716.75
7.2.290.0040.01216.61
7.2.130.0030.01016.75
7.2.120.0070.00416.97
7.2.110.0030.00616.94
7.2.100.0110.00016.95
7.2.90.0060.00916.67
7.2.80.0120.00316.87
7.2.70.0030.01016.99
7.2.60.0100.00416.76
7.2.50.0110.00416.96
7.2.40.0060.00617.05
7.2.30.0030.01016.92
7.2.20.0000.01117.02
7.2.10.0070.00416.76
7.2.00.0030.00918.32
7.1.250.0100.00315.81
7.1.200.0070.00415.80
7.1.100.0000.01416.26
7.1.70.0080.00817.21
7.1.60.0140.01019.36
7.1.50.0040.00716.83
7.1.00.0070.07322.30
7.0.200.0040.00416.75
7.0.60.0030.05319.75
7.0.50.0000.08717.91
7.0.40.0030.05020.02
7.0.30.0300.08720.06
7.0.20.0300.08020.30
7.0.10.0030.04320.24
7.0.00.0100.08020.15
5.6.280.0000.03321.04
5.6.210.0070.08020.51
5.6.200.0100.08318.18
5.6.190.0100.03720.47
5.6.180.0300.04320.52
5.6.170.0300.07720.56
5.6.160.0030.08720.46
5.6.150.0030.08718.15
5.6.140.0100.08018.30
5.6.130.0170.05018.16
5.6.120.0070.07321.12
5.6.110.0070.08021.08
5.6.100.0100.07320.95
5.6.90.0070.05320.98
5.6.80.0070.03720.38
5.5.350.3800.05020.39
5.5.340.0030.07017.99
5.5.330.0030.05020.23
5.5.320.0100.04320.30
5.5.310.0170.04720.27
5.5.300.0070.06017.98
5.5.290.0130.07718.02
5.5.280.0030.05320.98
5.5.270.0170.06720.97
5.5.260.0170.07320.72
5.5.250.0070.08720.62
5.5.240.0300.04720.26

preferences:
40.53 ms | 401 KiB | 5 Q