3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(int $arg) { return $arg; } } $foo = new Foo(); try { $foo->bar('10 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.0150.00716.63
8.3.50.0120.00821.99
8.3.40.0160.00018.83
8.3.30.0070.00718.72
8.3.20.0070.00020.21
8.3.10.0080.00021.77
8.3.00.0030.00519.50
8.2.180.0170.00318.61
8.2.170.0040.01422.96
8.2.160.0150.00019.46
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00419.23
8.2.120.0050.00326.35
8.2.110.0000.01020.38
8.2.100.0110.00017.90
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0120.00018.04
8.2.50.0040.00418.07
8.2.40.0080.00019.38
8.2.30.0040.00420.62
8.2.20.0000.00817.72
8.2.10.0040.00417.99
8.2.00.0000.00717.93
8.1.280.0110.00325.92
8.1.270.0070.00323.83
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0080.00022.23
8.1.230.0110.00017.54
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0040.00417.12
8.1.180.0030.00618.10
8.1.170.0000.00720.15
8.1.160.0000.00721.94
8.1.150.0040.00418.78
8.1.140.0040.00419.42
8.1.130.0030.00317.29
8.1.120.0050.00517.38
8.1.110.0000.00717.30
8.1.100.0050.00217.25
8.1.90.0000.00717.29
8.1.80.0000.00717.29
8.1.70.0000.00717.40
8.1.60.0110.00017.60
8.1.50.0090.00017.42
8.1.40.0050.00517.48
8.1.30.0030.00917.70
8.1.20.0000.00717.65
8.1.10.0040.00417.54
8.1.00.0000.00717.48
8.0.300.0090.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00318.33
8.0.270.0050.00217.27
8.0.260.0060.00016.72
8.0.250.0030.00316.88
8.0.240.0030.00316.81
8.0.230.0000.00716.83
8.0.220.0090.00016.89
8.0.210.0030.00816.86
8.0.200.0000.00716.91
8.0.190.0000.00716.92
8.0.180.0050.00316.89
8.0.170.0050.00316.89
8.0.160.0000.00716.89
8.0.150.0000.00716.68
8.0.140.0030.00316.72
8.0.130.0000.00713.35
8.0.120.0080.00016.82
8.0.110.0070.00016.71
8.0.100.0040.00416.88
8.0.90.0040.00416.82
8.0.80.0090.01216.85
8.0.70.0070.00016.77
8.0.60.0030.00316.77
8.0.50.0000.00716.79
8.0.30.0090.01116.96
8.0.20.0080.01117.40
8.0.10.0000.00817.11
8.0.00.0100.00716.95
7.4.330.0020.00216.67
7.4.320.0030.00316.48
7.4.300.0060.00016.59
7.4.290.0000.00716.60
7.4.280.0040.00416.49
7.4.270.0030.00316.60
7.4.260.0050.00216.60
7.4.250.0040.00416.54
7.4.240.0050.00216.58
7.4.230.0030.00316.66
7.4.220.0120.00616.69
7.4.210.0130.00316.52
7.4.200.0030.00316.56
7.4.160.0060.00916.57
7.4.150.0030.01417.40
7.4.140.0100.00917.86
7.4.130.0080.00916.46
7.4.120.0050.01216.43
7.4.110.0070.01016.64
7.4.100.0090.00916.42
7.4.90.0230.02716.51
7.4.80.0070.01019.39
7.4.70.0060.01216.41
7.4.60.0090.00616.37
7.4.50.0070.00716.36
7.4.40.0000.02216.60
7.4.30.0110.00816.26
7.4.00.0070.00715.05
7.3.330.0040.00413.31
7.3.320.0030.00313.25
7.3.310.0000.00716.35
7.3.300.0070.00016.18
7.3.290.0090.01016.26
7.3.280.0100.00816.31
7.3.270.0170.00017.40
7.3.260.0090.00616.39
7.3.250.0100.00916.25
7.3.240.0120.00716.46
7.3.230.0070.01516.39
7.3.210.0060.01016.32
7.3.200.0100.00616.44
7.3.190.0070.01116.29
7.3.180.0100.00716.29
7.3.170.0130.00616.33
7.3.160.0090.00816.38
7.3.10.0110.00016.53
7.3.00.0040.00416.39
7.2.330.0090.00816.49
7.2.320.0110.00616.54
7.2.310.0140.00316.59
7.2.300.0070.01016.46
7.2.290.0130.00716.74
7.2.130.0050.00516.71
7.2.120.0000.01616.91
7.2.110.0030.01016.57
7.2.100.0060.00616.54
7.2.90.0030.01016.75
7.2.80.0000.00916.46
7.2.70.0030.00716.53
7.2.60.0110.00916.43
7.2.50.0090.00616.85
7.2.40.0030.01016.73
7.2.30.0100.00316.92
7.2.20.0070.00716.48
7.2.10.0030.00716.86
7.2.00.0040.00918.09
7.1.250.0060.00915.49
7.1.200.0000.01415.65
7.1.100.0130.01316.07
7.1.70.0090.00417.06
7.1.60.0030.02019.36
7.1.50.0060.00616.91
7.1.00.0030.07322.45
7.0.200.0030.00616.82
7.0.60.0030.09019.91
7.0.50.0030.04317.95
7.0.40.0030.04320.18
7.0.30.0070.05020.26
7.0.20.0300.06320.23
7.0.10.0100.06320.09
7.0.00.0070.08020.24
5.6.280.0000.04020.93
5.6.210.0030.08320.76
5.6.200.0070.08318.29
5.6.190.0000.05020.63
5.6.180.0430.07020.39
5.6.170.0200.04320.57
5.6.160.0130.03320.44
5.6.150.0200.06718.12
5.6.140.0070.05318.23
5.6.130.0070.05718.16
5.6.120.0130.07721.14
5.6.110.0100.08020.99
5.6.100.0030.06721.00
5.6.90.0030.07720.97
5.6.80.0070.06320.51
5.5.350.3900.03720.44
5.5.340.0070.04717.99
5.5.330.0000.05320.44
5.5.320.0000.06320.25
5.5.310.0200.04020.33
5.5.300.0030.08717.95
5.5.290.0170.07018.01
5.5.280.0030.08320.80
5.5.270.0070.07720.87
5.5.260.0100.05020.97
5.5.250.0030.06320.70
5.5.240.0230.07020.12

preferences:
42.61 ms | 401 KiB | 5 Q