3v4l.org

run code in 300+ PHP versions simultaneously
<?php //declare(strict_types=1); function sum($a, $b): int { return $a + $b; } var_dump(sum(1, 2)); var_dump(sum(1, 2.5)); ?>

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.0000.01416.88
8.3.50.0280.00421.02
8.3.40.0090.00618.61
8.3.30.0070.00718.84
8.3.20.0040.00420.38
8.3.10.0070.00023.66
8.3.00.0100.00323.48
8.2.180.0090.00618.15
8.2.170.0090.00622.96
8.2.160.0070.00720.11
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00819.82
8.2.120.0000.00826.35
8.2.110.0030.00622.14
8.2.100.0090.00317.80
8.2.90.0000.00819.09
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0040.00417.91
8.2.50.0000.00818.07
8.2.40.0050.00322.35
8.2.30.0030.00619.41
8.2.20.0000.00817.65
8.2.10.0000.00717.80
8.2.00.0040.00417.80
8.1.280.0060.01025.92
8.1.270.0040.00423.91
8.1.260.0000.00728.09
8.1.250.0000.00728.09
8.1.240.0090.00022.53
8.1.230.0030.00719.22
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0030.00616.97
8.1.180.0070.00418.10
8.1.170.0040.00418.46
8.1.160.0000.00820.49
8.1.150.0030.00718.75
8.1.140.0060.00319.42
8.1.130.0000.00717.56
8.1.120.0040.00417.20
8.1.110.0000.00717.18
8.1.100.0020.00517.34
8.1.90.0000.00717.19
8.1.80.0030.00517.21
8.1.70.0000.00717.34
8.1.60.0000.00817.42
8.1.50.0030.00617.37
8.1.40.0030.00617.39
8.1.30.0040.00417.59
8.1.20.0050.00317.55
8.1.10.0060.00317.47
8.1.00.0000.00917.45
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0000.00818.37
8.0.270.0030.00317.18
8.0.260.0060.00017.19
8.0.250.0060.00016.90
8.0.240.0040.00416.91
8.0.230.0020.00516.88
8.0.220.0000.00716.75
8.0.210.0030.00316.84
8.0.200.0000.00716.81
8.0.190.0030.00616.89
8.0.180.0000.00716.84
8.0.170.0080.00016.84
8.0.160.0070.00016.81
8.0.150.0080.00016.77
8.0.140.0000.00816.78
8.0.130.0060.00313.28
8.0.120.0030.00616.79
8.0.110.0000.00716.84
8.0.100.0040.00416.71
8.0.90.0000.00716.77
8.0.80.0160.00416.76
8.0.70.0000.00816.66
8.0.60.0000.00716.69
8.0.50.0040.00416.63
8.0.30.0130.00716.85
8.0.20.0120.00817.40
8.0.10.0040.00416.82
8.0.00.0100.01016.73
7.4.330.0050.00016.82
7.4.320.0030.00316.51
7.4.300.0040.00416.41
7.4.290.0030.00316.50
7.4.280.0000.00916.37
7.4.270.0000.00716.36
7.4.260.0040.00416.37
7.4.250.0000.00716.46
7.4.240.0050.00216.50
7.4.230.0000.00716.32
7.4.220.0160.00416.41
7.4.210.0130.00616.60
7.4.200.0030.00316.51
7.4.160.0110.00416.39
7.4.150.0100.01417.40
7.4.140.0120.00817.86
7.4.130.0120.00916.43
7.4.120.0100.00716.45
7.4.110.0090.00916.51
7.4.100.0060.01816.40
7.4.90.0060.01016.32
7.4.80.0080.00919.39
7.4.70.0120.00616.29
7.4.60.0100.00716.23
7.4.50.0040.01116.43
7.4.40.0110.01116.38
7.4.30.0170.00016.40
7.4.00.0060.00914.66
7.3.330.0000.00513.13
7.3.320.0060.00013.17
7.3.310.0070.00016.20
7.3.300.0060.00016.19
7.3.290.0070.00816.30
7.3.280.0050.01316.28
7.3.270.0120.00617.40
7.3.260.0110.00616.47
7.3.250.0100.00816.44
7.3.240.0060.01316.43
7.3.230.0090.00616.40
7.3.210.0070.01016.38
7.3.200.0100.00719.39
7.3.190.0090.00816.55
7.3.180.0110.00516.68
7.3.170.0040.01316.35
7.3.160.0060.00916.31
7.2.330.0090.01216.64
7.2.320.0120.00416.53
7.2.310.0130.00316.32
7.2.300.0110.00616.66
7.2.290.0160.00016.63
7.2.80.0080.00016.49
7.2.60.0000.01516.83
7.2.00.0030.00619.41
7.1.200.0040.00815.57
7.1.100.0000.01217.86
7.1.70.0060.00617.09
7.1.60.0180.00719.18
7.1.50.0100.01016.58
7.1.00.0100.07022.40
7.0.200.0060.00316.38
7.0.60.0130.07721.88
7.0.50.0000.04317.88
7.0.40.0170.07320.36
7.0.30.0200.08720.20
7.0.20.0230.07020.04
7.0.10.0070.08020.23
7.0.00.0070.07020.20
5.6.280.0030.03321.12
5.6.210.0070.06020.53
5.6.200.0100.07318.18
5.6.190.0030.07320.67
5.6.180.0330.04020.65
5.6.170.0270.08020.56
5.6.160.0170.07720.55
5.6.150.0130.07018.27
5.6.140.0100.04018.18
5.6.130.0170.04018.19
5.6.120.0070.08721.02
5.6.110.0200.06720.91
5.6.100.0070.03720.98
5.6.90.0000.04721.10
5.6.80.0100.07720.37
5.5.350.0330.07320.43
5.5.340.0130.04717.98
5.5.330.0170.07320.32
5.5.320.0170.04320.33
5.5.310.0130.04320.34
5.5.300.0130.06318.07
5.5.290.0170.07717.96
5.5.280.0100.07720.61
5.5.270.0100.08320.76
5.5.260.0170.07320.76
5.5.250.0100.06720.49
5.5.240.0170.07320.12

preferences:
50.06 ms | 401 KiB | 5 Q