3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "++i "; $start = microtime(true); for ($i = 0; $i < 10000000; ++$i); $delta_pre = microtime(true) - $start; printf('%.4F', $delta_pre); echo PHP_EOL; echo "i++ "; $start = microtime(true); for ($i = 0; $i < 10000000; $i++); $delpa_post = microtime(true) - $start; printf('%.4F', $delpa_post); echo PHP_EOL; echo PHP_EOL; printf('%.2F', $delta_pre / $delpa_post * 100); echo "%", PHP_EOL;

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)
7.2.00.0030.13319.61
7.1.70.0030.16617.25
7.1.60.0130.18919.82
7.1.50.0030.13316.91
7.1.00.0030.25322.40
7.0.200.0000.15916.82
7.0.140.0070.23321.92
7.0.60.0100.21719.86
7.0.50.0070.29017.93
7.0.40.0070.22720.23
7.0.30.0470.17320.03
7.0.20.0230.22320.04
7.0.10.0000.19320.05
7.0.00.0000.23320.11
5.6.280.0070.53321.04
5.6.210.0200.48020.66
5.6.200.0070.48718.12
5.6.190.0030.52720.67
5.6.180.0270.47720.49
5.6.170.0300.53020.49
5.6.160.0170.46720.47
5.6.150.0070.42718.23
5.6.140.0130.49018.18
5.6.130.0030.44318.20
5.6.120.0070.43020.96
5.6.110.0030.48321.01
5.6.100.0070.45321.04
5.6.90.0100.41321.09
5.6.80.0100.44320.43
5.5.350.0430.52020.34
5.5.340.0070.45017.91
5.5.330.0070.44320.37
5.5.320.0000.48720.18
5.5.310.0330.51020.31
5.5.300.0100.44018.02
5.5.290.0200.42717.94
5.5.280.0070.44020.76
5.5.270.0170.47720.74
5.5.260.0100.47720.76
5.5.250.0070.51320.79
5.5.240.0030.41320.06
5.4.450.0600.59719.29
5.4.440.0100.67719.52
5.4.430.0130.61019.31
5.4.420.0130.59019.53
5.4.410.0100.59019.48
5.4.400.6400.00018.54
5.4.390.7230.00018.59
5.4.380.0300.59718.68
5.4.370.0130.59718.60
5.4.360.0130.59018.65
5.4.350.0130.59718.71
5.4.340.0300.62318.74
5.4.320.0130.47812.45
5.4.310.0090.48612.45
5.4.300.0040.46412.45
5.4.290.0040.50712.45
5.4.280.0070.50712.35
5.4.270.0100.76318.98
5.4.260.0170.77018.94
5.4.250.0200.71718.65
5.4.240.0230.83018.97
5.4.230.0200.82018.82
5.4.220.0130.83018.78
5.4.210.0030.76718.68
5.4.200.0230.75718.83
5.4.190.0200.85018.73
5.4.180.0130.67018.77
5.4.170.0130.74318.77
5.4.160.0271.04018.66
5.4.150.0100.72318.57
5.4.140.0130.72316.45
5.4.130.0130.78016.36
5.4.120.0100.71716.50
5.4.110.0130.75316.23
5.4.100.0070.72316.30
5.4.90.0030.87316.37
5.4.80.0230.74016.18
5.4.70.0130.70016.44
5.4.60.0230.67016.16
5.4.50.0170.81016.20
5.4.40.0130.83316.33
5.4.30.0100.79316.13
5.4.20.0130.80316.10
5.4.10.0230.73016.45
5.4.00.0200.88315.82
5.3.290.0100.61312.80
5.3.280.0271.03014.47
5.3.270.0200.96314.48
5.3.260.0071.03014.69
5.3.250.0131.04014.52
5.3.240.0130.89014.46
5.3.230.0301.05014.59
5.3.220.0201.15314.41
5.3.210.0100.88014.72
5.3.200.0100.92714.66
5.3.190.0030.98714.26
5.3.180.0131.05014.58
5.3.170.0231.01014.58
5.3.160.0170.86314.72
5.3.150.0230.96714.45
5.3.140.0130.98714.71
5.3.130.0401.11714.56
5.3.120.0201.00714.64
5.3.110.0271.07714.55
5.3.100.0101.13014.04
5.3.90.0100.97313.88
5.3.80.0101.04713.88
5.3.70.0031.00713.88
5.3.60.0101.06014.09
5.3.50.0171.22013.64
5.3.40.0170.96714.04
5.3.30.0070.96713.79
5.3.20.0100.89713.70
5.3.10.0170.93713.53
5.3.00.0001.00313.63
5.2.170.0101.52011.15
5.2.160.0071.52011.25
5.2.150.0071.51311.23
5.2.140.0031.53711.03
5.2.130.0131.43311.10
5.2.120.0171.43311.11
5.2.110.0201.43311.11
5.2.100.0071.44711.03
5.2.90.0031.35311.11
5.2.80.0201.28011.02
5.2.70.0171.28010.99
5.2.60.0101.52710.93
5.2.50.0101.77710.90
5.2.40.0071.31010.99
5.2.30.0171.54010.99
5.2.20.0031.31310.79
5.2.10.0171.23311.07
5.2.00.0101.40710.72
5.1.60.0071.67310.12
5.1.50.0031.5209.96
5.1.40.0231.8239.81
5.1.30.0131.45010.48
5.1.20.0131.32010.24
5.1.10.0171.37310.04
5.1.00.0231.59710.17
5.0.50.0172.4078.42
5.0.40.0202.4138.27
5.0.30.0102.1808.21
5.0.20.0102.1908.09
5.0.10.0172.3307.90
5.0.00.0132.3777.98
4.4.90.0072.3375.62
4.4.80.0002.3505.80
4.4.70.0172.4076.84
4.4.60.0232.3505.79
4.4.50.0002.4175.73
4.4.40.0102.3036.84
4.4.30.0132.2436.84
4.4.20.0132.3976.84
4.4.10.0032.1375.80
4.4.00.0072.4336.84
4.3.110.0232.2235.69
4.3.100.0102.1505.63
4.3.90.0032.3935.61
4.3.80.0102.4335.66
4.3.70.0172.2827.80
4.3.60.0032.2605.67
4.3.50.0032.2975.68
4.3.40.0071.9475.78
4.3.30.0031.9435.46
4.3.20.0032.1235.46
4.3.10.0132.3575.46
4.3.00.0172.3177.18

preferences:
28.06 ms | 400 KiB | 5 Q