3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(int $a, string $b) { } try { test(1); } catch (Error $e) { echo $e->getMessage() . "\n"; } try { test('test'); } catch (Error $e) { echo $e->getMessage() . "\n"; }

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.0110.00718.56
8.3.50.0040.01119.71
8.3.40.0110.00419.28
8.3.30.0090.00618.60
8.3.20.0070.00024.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.180.0100.01325.92
8.2.170.0090.00619.13
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0070.01022.25
8.2.100.0040.00817.84
8.2.90.0030.00617.84
8.2.80.0080.00019.18
8.2.70.0040.00917.44
8.2.60.0090.00417.53
8.2.50.0120.00317.54
8.2.40.0080.00417.81
8.2.30.0110.00217.71
8.2.20.0110.00218.34
8.2.10.0070.00517.57
8.2.00.0070.00518.10
8.1.280.0070.00725.92
8.1.270.0030.00623.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00322.18
8.1.230.0040.00720.84
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00817.12
8.1.190.0050.00717.24
8.1.180.0080.00417.61
8.1.170.0090.00317.80
8.1.160.0090.00418.03
8.1.150.0080.00417.79
8.1.140.0090.00317.33
8.1.130.0060.00518.01
8.1.120.0060.00617.22
8.1.110.0030.00917.37
8.1.100.0090.00217.40
8.1.90.0090.00217.36
8.1.80.0110.00017.09
8.1.70.0060.00617.41
8.1.60.0070.00617.47
8.1.50.0060.00717.46
8.1.40.0070.00617.39
8.1.30.0080.00617.46
8.1.20.0100.00317.45
8.1.10.0070.00717.40
8.1.00.0070.00517.42
8.0.300.0000.00820.13
8.0.290.0090.00316.73
8.0.280.0080.00317.47
8.0.270.0050.00716.79
8.0.260.0070.00417.49
8.0.250.0070.00516.82
8.0.240.0100.00216.77
8.0.230.0050.00716.83
8.0.220.0080.00416.76
8.0.210.0090.00316.71
8.0.200.0080.00316.79
8.0.190.0050.00716.87
8.0.180.0080.00416.84
8.0.170.0170.00016.80
8.0.160.0110.00116.75
8.0.150.0080.00416.68
8.0.140.0060.00616.77
8.0.130.0080.00315.01
8.0.120.0090.00514.97
8.0.110.0110.00314.98
8.0.100.0080.00814.97
8.0.90.0090.00614.97
8.0.80.0100.00415.05
8.0.70.0110.00414.98
8.0.60.0110.00414.91
8.0.50.0110.00414.94
8.0.30.0130.00214.98
8.0.20.0080.00715.00
8.0.10.0140.00115.00
8.0.00.0070.00515.00
7.4.330.0020.00616.06
7.4.320.0100.00216.57
7.4.300.0060.00416.60
7.4.290.0090.00216.51
7.4.280.0110.00216.59
7.4.270.0090.00316.54
7.4.260.0070.00514.96
7.4.250.0110.00514.94
7.4.240.0080.00814.94
7.4.230.0100.00514.93
7.4.220.0130.00114.94
7.4.210.0120.00214.94
7.4.200.0090.00714.94
7.4.190.0150.00214.96
7.4.180.0130.00214.98
7.4.160.0100.00414.97
7.4.150.0120.00114.93
7.4.140.0100.00314.86
7.4.130.0110.00314.91
7.4.120.0100.00414.91
7.4.110.0080.00614.87
7.4.100.0110.00314.86
7.4.90.0060.00814.90
7.4.80.0100.00514.90
7.4.70.0100.00414.79
7.4.60.0130.00214.86
7.4.50.0100.00414.84
7.4.40.0030.01114.79
7.4.30.0090.00414.86
7.4.20.0090.00514.92
7.4.10.0120.00314.88
7.4.00.0090.00414.84
7.3.330.0090.00216.46
7.3.320.0110.00314.89
7.3.310.0110.00414.91
7.3.300.0100.00514.93
7.3.290.0070.00714.86
7.3.280.0090.00514.95
7.3.270.0110.00414.98
7.3.260.0090.00714.90
7.3.250.0120.00414.94
7.3.240.0090.00614.94
7.3.230.0130.00214.82
7.3.220.0110.00514.93
7.3.210.0100.00514.82
7.3.200.0100.00514.89
7.3.190.0100.00614.84
7.3.180.0120.00514.91
7.3.170.0100.00614.94
7.3.160.0100.00414.86
7.3.150.0110.00314.87
7.3.140.0100.00514.95
7.3.130.0050.01014.94
7.3.120.0110.00314.95
7.3.110.0100.00514.78
7.3.100.0080.00614.76
7.3.90.0100.00415.07
7.3.80.0110.00314.90
7.3.70.0110.00414.96
7.3.60.0130.00215.04
7.3.50.0130.00114.93
7.3.40.0100.00415.04
7.3.30.0130.00214.91
7.3.20.0120.00315.81
7.3.10.0130.00315.88
7.3.00.0100.00715.81

preferences:
51.21 ms | 400 KiB | 5 Q