3v4l.org

run code in 300+ PHP versions simultaneously
<?php function plus(int $firstNumber, int $secondNumber) : int { return $firstNumber + $secondNumber; } try { echo plus("0.1", "1"); } catch (Throwable $t){}

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.70.0140.00318.56
8.3.60.0070.01516.75
8.3.50.0140.00521.27
8.3.40.0140.00018.77
8.3.30.0070.00718.84
8.3.20.0040.00420.52
8.3.10.0040.00421.73
8.3.00.0040.00423.64
8.2.190.0170.00318.29
8.2.180.0110.00416.50
8.2.170.0110.00322.96
8.2.160.0110.00420.11
8.2.150.0080.00025.66
8.2.140.0070.00724.66
8.2.130.0080.00019.76
8.2.120.0050.00326.35
8.2.110.0100.00021.04
8.2.100.0030.00917.93
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0030.00522.23
8.2.30.0000.00720.58
8.2.20.0040.00417.50
8.2.10.0040.00418.00
8.2.00.0000.00817.79
8.1.280.0090.00625.92
8.1.270.0030.00723.84
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0040.00817.35
8.1.230.0070.00717.70
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.13
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0040.00418.37
8.1.160.0040.00420.52
8.1.150.0040.00418.68
8.1.140.0040.00419.36
8.1.130.0000.00717.62
8.1.120.0000.00717.25
8.1.110.0040.00417.33
8.1.100.0020.00517.33
8.1.90.0050.00217.39
8.1.80.0040.00417.34
8.1.70.0040.00417.30
8.1.60.0030.00517.41
8.1.50.0050.00317.36
8.1.40.0040.00417.45
8.1.30.0050.00317.54
8.1.20.0060.00317.57
8.1.10.0080.00017.56
8.1.00.0030.00517.43
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00518.44
8.0.270.0000.00717.20
8.0.260.0030.00717.20
8.0.250.0040.00416.95
8.0.240.0060.00017.02
8.0.230.0030.00316.94
8.0.220.0030.00316.77
8.0.210.0030.00316.88
8.0.200.0000.01016.88
8.0.190.0050.00316.95
8.0.180.0060.00316.91
8.0.170.0030.00516.80
8.0.160.0030.00316.79
8.0.150.0040.00416.79
8.0.140.0090.00016.78
8.0.130.0030.00313.28
8.0.120.0040.00416.84
8.0.110.0040.00416.71
8.0.100.0000.00816.96
8.0.90.0040.00416.96
8.0.80.0060.00916.95
8.0.70.0050.00316.69
8.0.60.0040.00416.88
8.0.50.0050.00216.77
8.0.30.0120.00517.24
8.0.20.0110.01017.40
8.0.10.0050.00216.90
8.0.00.0150.00916.78
7.4.330.0000.00516.69
7.4.320.0030.00316.34
7.4.300.0030.00316.43
7.4.290.0040.00416.57
7.4.280.0030.00816.38
7.4.270.0050.00216.53
7.4.260.0050.00516.57
7.4.250.0030.00316.30
7.4.240.0020.00516.44
7.4.230.0000.00716.64
7.4.220.0060.01216.39
7.4.210.0030.01016.48
7.4.200.0040.00416.63
7.4.160.0040.01116.74
7.4.150.0120.00617.40
7.4.140.0160.00517.86
7.4.130.0110.00716.35
7.4.120.0100.00716.38
7.4.110.0110.00716.48
7.4.100.0070.01016.66
7.4.90.0140.00716.52
7.4.80.0060.01219.39
7.4.70.0130.00316.59
7.4.60.0180.00416.44
7.4.50.0040.01116.57
7.4.40.0070.01016.35
7.4.30.0110.00516.14
7.4.00.0030.01314.90
7.3.330.0000.00513.09
7.3.320.0000.00513.17
7.3.310.0000.00716.21
7.3.300.0000.00816.31
7.3.290.0060.01116.31
7.3.280.0090.00916.29
7.3.270.0060.01217.40
7.3.260.0080.01316.52
7.3.250.0070.01016.40
7.3.240.0090.00716.43
7.3.230.0090.00916.39
7.3.210.0060.01016.23
7.3.200.0090.00919.39
7.3.190.0150.00016.66
7.3.180.0000.01616.29
7.3.170.0110.00716.59
7.3.160.0080.00816.39
7.2.330.0090.00816.53
7.2.320.0150.00916.74
7.2.310.0100.00716.55
7.2.300.0060.01116.44
7.2.290.0080.01416.59
7.2.60.0030.01016.36
7.2.00.0030.00919.48
7.1.200.0000.01115.73
7.1.100.0060.00618.05
7.1.70.0030.00616.80
7.1.60.0090.01319.20
7.1.50.0100.01016.65
7.1.00.0070.07322.32
7.0.200.0000.00716.79
7.0.60.0230.03719.92
7.0.50.0170.05017.91
7.0.40.0130.07320.27
7.0.30.0230.03320.13
7.0.20.0170.05020.24
7.0.10.0070.08720.33
7.0.00.0070.08320.38
5.6.280.0000.03321.07
5.6.210.0030.04320.46
5.6.200.0070.08318.20
5.6.190.0030.05020.34
5.6.180.0500.05320.58
5.6.170.0230.08720.43
5.6.160.0100.06320.50
5.6.150.0070.05718.25
5.6.140.0100.08018.18
5.6.130.0030.06018.18
5.6.120.0100.05021.00
5.6.110.0030.09021.19
5.6.100.0170.07720.97
5.6.90.0100.05021.01
5.6.80.0000.04720.43
5.5.350.0070.08020.40
5.5.340.0130.06717.99
5.5.330.0070.09020.27
5.5.320.0230.03320.25
5.5.310.0200.07320.51
5.5.300.0200.06718.04
5.5.290.0070.03718.07
5.5.280.0070.07720.84
5.5.270.0100.08020.67
5.5.260.0130.08020.76
5.5.250.0070.08020.66
5.5.240.0100.03320.23

preferences:
45.72 ms | 401 KiB | 5 Q