3v4l.org

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

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.0160.00916.75
8.3.50.0130.00821.09
8.3.40.0070.00718.76
8.3.30.0070.00718.63
8.3.20.0000.00720.30
8.3.10.0040.00421.48
8.3.00.0070.00023.52
8.2.180.0070.01516.50
8.2.170.0120.00919.13
8.2.160.0120.00622.96
8.2.150.0000.00725.66
8.2.140.0000.01524.66
8.2.130.0000.00819.66
8.2.120.0000.00726.35
8.2.110.0060.00322.21
8.2.100.0120.00017.93
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0060.00317.46
8.2.60.0080.00017.80
8.2.50.0030.00518.07
8.2.40.0040.00422.19
8.2.30.0000.00820.49
8.2.20.0070.00017.69
8.2.10.0030.00517.80
8.2.00.0090.00017.92
8.1.280.0040.01225.92
8.1.270.0050.00323.96
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0000.00922.39
8.1.230.0070.00319.16
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0000.00917.10
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0000.00818.54
8.1.160.0000.00720.61
8.1.150.0040.00418.70
8.1.140.0000.00819.44
8.1.130.0030.00517.57
8.1.120.0040.00417.26
8.1.110.0060.00317.34
8.1.100.0040.00417.32
8.1.90.0070.00017.33
8.1.80.0060.00317.30
8.1.70.0040.00417.34
8.1.60.0040.00417.49
8.1.50.0000.00917.37
8.1.40.0000.00817.47
8.1.30.0030.00617.54
8.1.20.0040.00417.53
8.1.10.0040.00417.48
8.1.00.0000.00817.27
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.36
8.0.270.0000.00717.21
8.0.260.0000.01017.16
8.0.250.0050.00317.02
8.0.240.0070.00017.07
8.0.230.0030.00316.85
8.0.220.0050.00216.81
8.0.210.0030.00316.92
8.0.200.0000.00816.93
8.0.190.0040.00416.98
8.0.180.0040.00616.85
8.0.170.0000.00716.96
8.0.160.0020.00516.82
8.0.150.0000.00716.72
8.0.140.0080.00316.82
8.0.130.0050.00013.26
8.0.120.0000.00716.85
8.0.110.0040.00416.89
8.0.100.0000.00716.98
8.0.90.0000.00816.75
8.0.80.0100.00716.87
8.0.70.0000.00716.93
8.0.60.0040.00416.95
8.0.50.0000.00717.00
8.0.30.0090.01017.09
8.0.20.0100.01417.40
8.0.10.0070.00017.07
8.0.00.0080.01216.82
7.4.330.0000.00516.84
7.4.320.0000.00616.48
7.4.300.0030.00316.45
7.4.290.0060.00316.52
7.4.280.0090.00016.44
7.4.270.0030.00316.42
7.4.260.0030.00716.51
7.4.250.0000.00816.41
7.4.240.0060.00116.44
7.4.230.0050.00216.34
7.4.220.0160.00316.64
7.4.210.0060.00916.46
7.4.200.0040.00416.55
7.4.160.0060.00916.53
7.4.150.0060.01717.40
7.4.140.0100.00917.86
7.4.130.0100.00716.36
7.4.120.0120.00616.47
7.4.110.0100.00716.49
7.4.100.0110.01116.43
7.4.90.0100.01016.36
7.4.80.0150.00619.39
7.4.70.0040.01116.49
7.4.60.0100.00716.34
7.4.50.0070.01016.46
7.4.40.0130.00616.29
7.4.30.0090.00616.58
7.4.00.0030.01015.20
7.3.330.0000.00513.19
7.3.320.0050.00013.21
7.3.310.0000.00716.25
7.3.300.0000.00616.26
7.3.290.0050.01216.26
7.3.280.0070.00916.30
7.3.270.0090.00917.40
7.3.260.0060.01216.70
7.3.250.0110.00716.41
7.3.240.0100.01016.59
7.3.230.0140.00916.39
7.3.210.0070.01016.33
7.3.200.0190.00319.39
7.3.190.0000.01716.48
7.3.180.0040.01216.44
7.3.170.0100.01016.65
7.3.160.0090.00916.36
7.3.10.0110.00416.65
7.3.00.0030.00716.50
7.2.330.0090.00916.66
7.2.320.0170.00016.27
7.2.310.0110.00616.65
7.2.300.0130.00316.73
7.2.290.0120.00616.49
7.2.130.0030.00916.97
7.2.120.0040.00816.78
7.2.110.0040.00816.95
7.2.100.0060.00316.89
7.2.90.0080.00416.57
7.2.80.0030.01416.86
7.2.70.0030.00616.86
7.2.60.0070.00616.55
7.2.50.0060.00616.83
7.2.40.0100.00316.95
7.2.30.0100.00316.87
7.2.20.0070.00716.82
7.2.10.0040.00716.75
7.2.00.0050.00818.13
7.1.250.0030.00615.62
7.1.200.0030.00715.74
7.1.70.0030.00617.18
7.1.60.0070.00717.09
7.1.50.0200.00734.65
7.1.00.0070.07322.43
7.0.200.0000.01516.78
7.0.60.0030.03021.66
7.0.50.0070.04017.83
7.0.40.0070.06720.04
7.0.30.0130.04320.23
7.0.20.0230.03320.16
7.0.10.0030.06020.15
7.0.00.0100.07320.22
5.6.280.0000.03321.15
5.6.210.0230.06320.48
5.6.200.0030.04318.20
5.6.190.0130.07320.42
5.6.180.0430.07720.39
5.6.170.0200.08320.55
5.6.160.0070.04320.39
5.6.150.0030.04018.19
5.6.140.0130.07018.29
5.6.130.0070.05018.11
5.6.120.0000.04721.02
5.6.110.0100.08020.96
5.6.100.0130.08721.02
5.6.90.0070.08321.03
5.6.80.0000.04020.38
5.5.350.0170.06720.32
5.5.340.0100.03717.95
5.5.330.0130.07720.13
5.5.320.0170.05320.38
5.5.310.0300.06720.36
5.5.300.0000.04317.98
5.5.290.0030.05718.05
5.5.280.0130.08320.80
5.5.270.0170.07320.79
5.5.260.0070.08720.86
5.5.250.0100.07720.79
5.5.240.0170.05020.18

preferences:
33.73 ms | 401 KiB | 5 Q