3v4l.org

run code in 300+ PHP versions simultaneously
<?php function plusfive($n) { for($i=0;$i<5;$i++) { $n++; } return $n; } $num = 0.000000000000499999999; $numa = $num + 5; $numb = plusfive($num); echo $numa; echo "\n"; echo $numb;

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.0040.01116.63
8.3.50.0090.00921.87
8.3.40.0120.00318.72
8.3.30.0110.01118.66
8.3.20.0000.00720.34
8.3.10.0050.00323.73
8.3.00.0050.00319.38
8.2.180.0090.00618.30
8.2.170.0120.00922.96
8.2.160.0130.00022.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0120.00017.50
8.2.120.0040.00426.35
8.2.110.0090.00020.53
8.2.100.0060.00617.91
8.2.90.0050.00319.22
8.2.80.0050.00317.97
8.2.70.0040.00417.48
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0040.00419.37
8.2.30.0040.00420.58
8.2.20.0030.00617.65
8.2.10.0000.00818.19
8.2.00.0040.00418.11
8.1.280.0030.01425.92
8.1.270.0080.00322.07
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0100.00022.08
8.1.230.0040.00720.87
8.1.220.0060.00317.77
8.1.210.0080.00018.77
8.1.200.0100.00017.23
8.1.190.0050.00317.23
8.1.180.0000.00918.10
8.1.170.0090.00018.76
8.1.160.0000.00722.02
8.1.150.0040.00418.87
8.1.140.0040.00419.52
8.1.130.0110.00017.71
8.1.120.0040.00417.42
8.1.110.0050.00317.41
8.1.100.0040.00417.39
8.1.90.0040.00417.45
8.1.80.0000.00817.41
8.1.70.0000.00817.35
8.1.60.0060.00317.57
8.1.50.0040.00417.56
8.1.40.0030.00517.48
8.1.30.0040.00417.61
8.1.20.0040.00417.63
8.1.10.0040.00417.43
8.1.00.0050.00317.52
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00518.43
8.0.270.0070.00017.26
8.0.260.0040.00417.26
8.0.250.0040.00416.91
8.0.240.0000.00616.98
8.0.230.0050.00316.93
8.0.220.0040.00416.85
8.0.210.0070.00016.87
8.0.200.0060.00016.82
8.0.190.0000.00816.89
8.0.180.0040.00416.75
8.0.170.0000.00916.87
8.0.160.0030.00516.86
8.0.150.0030.00316.75
8.0.140.0060.00616.70
8.0.130.0060.00313.21
8.0.120.0080.00016.84
8.0.110.0070.00016.74
8.0.100.0050.00316.71
8.0.90.0040.00416.70
8.0.80.0040.01716.84
8.0.70.0040.00416.76
8.0.60.0070.00016.87
8.0.50.0000.00716.64
8.0.30.0110.00917.05
8.0.20.0090.00917.40
8.0.10.0060.00316.89
8.0.00.0070.01016.70
7.4.330.0000.00516.79
7.4.320.0000.00716.53
7.4.300.0000.00716.54
7.4.290.0050.00316.58
7.4.280.0040.00416.61
7.4.270.0080.00016.54
7.4.260.0070.00316.58
7.4.250.0040.00416.45
7.4.240.0050.00216.57
7.4.230.0030.00316.42
7.4.220.0090.00816.65
7.4.210.0110.00416.70
7.4.200.0040.00416.46
7.4.160.0060.00916.54
7.4.150.0170.00017.40
7.4.140.0100.01117.86
7.4.130.0120.00616.41
7.4.120.0080.00916.37
7.4.110.0090.01216.55
7.4.100.0100.00716.43
7.4.90.0090.00916.65
7.4.80.0110.01219.39
7.4.70.0110.02616.56
7.4.60.0070.01016.45
7.4.50.0140.00016.48
7.4.40.0030.01316.41
7.4.30.0140.00416.47
7.4.00.0110.00315.04
7.3.330.0000.00613.22
7.3.320.0000.00513.11
7.3.310.0000.00716.20
7.3.300.0020.00516.31
7.3.290.0080.00716.29
7.3.280.0080.00716.29
7.3.270.0270.02117.40
7.3.260.0060.01116.46
7.3.240.0110.00716.38
7.3.230.0150.00616.44
7.3.210.0070.01016.66
7.3.200.0070.01416.30
7.3.190.0140.00616.45
7.3.180.0030.01216.39
7.3.170.0170.00316.63
7.3.160.0100.01116.46
7.2.330.0070.01116.73
7.2.320.0170.00016.56
7.2.310.0070.01016.70
7.2.300.0000.02316.73
7.2.290.0090.01216.74
7.2.00.0030.00919.21
7.1.100.0030.01018.43
7.1.70.0040.00417.13
7.1.60.0120.01219.48
7.1.50.0190.01634.46
7.1.00.0030.07722.37
7.0.200.0300.00314.70
7.0.60.0170.03020.10
7.0.50.0230.04317.89
7.0.40.0070.09020.09
7.0.30.0270.07720.28
7.0.20.0200.04320.10
7.0.10.0130.07320.20
7.0.00.0030.08720.22
5.6.280.0070.07020.90
5.6.210.0000.05020.48
5.6.200.0170.07718.18
5.6.190.0030.06320.48
5.6.180.0530.06020.64
5.6.170.0200.04320.57
5.6.160.0030.04020.61
5.6.150.0170.07018.18
5.6.140.0100.07718.19
5.6.130.0170.06718.12
5.6.120.0070.08020.90
5.6.110.0100.08021.01
5.6.100.0070.04321.11
5.6.90.0030.08321.09
5.6.80.0030.04020.49
5.5.350.4300.04320.43
5.5.340.0130.04018.07
5.5.330.0130.08020.44
5.5.320.0270.03320.30
5.5.310.0170.04720.34
5.5.300.0100.07717.98
5.5.290.0100.08318.07
5.5.280.0100.08720.88
5.5.270.0100.06020.80
5.5.260.0170.05320.80
5.5.250.0000.08720.69
5.5.240.0130.08020.26

preferences:
58.92 ms | 401 KiB | 5 Q