3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "++i "; $start = microtime(true); for ($i = 0; $i < 1000000; ++$i); $delta_pre = microtime(true) - $start; printf('%.4F', $delta_pre); echo PHP_EOL; echo "i++ "; $start = microtime(true); for ($i = 0; $i < 1000000; $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.02019.50
7.1.70.0060.01917.04
7.1.60.0100.04319.82
7.1.50.0070.03716.86
7.1.00.0030.10022.33
7.0.200.0090.01516.72
7.0.140.0070.09022.11
7.0.60.0070.09719.96
7.0.50.0030.05717.86
7.0.40.0000.07020.04
7.0.30.0400.08020.17
7.0.20.0270.04320.16
7.0.10.0200.05320.11
7.0.00.0030.09720.21
5.6.210.0130.10020.61
5.6.200.0070.08718.17
5.6.190.0070.14020.46
5.6.180.3500.07720.49
5.6.170.0130.08020.44
5.6.160.0130.07320.37
5.6.150.0100.09318.15
5.6.140.0100.11018.14
5.6.130.0070.10018.18
5.6.120.0030.14021.15
5.6.110.0170.13021.17
5.6.100.0100.10321.10
5.6.90.0070.11020.98
5.6.80.0130.13020.38
5.6.70.0300.12320.34
5.5.350.0030.14320.41
5.5.340.0170.12318.02
5.5.330.0100.13320.36
5.5.320.0230.07320.29
5.5.310.0270.12020.32
5.5.300.0070.08718.00
5.5.290.0030.08318.02
5.5.280.0070.11320.87
5.5.270.0000.14320.88
5.5.260.0070.12320.79
5.5.250.0030.13720.61
5.5.240.0000.11720.14
5.4.450.0900.11019.52
5.4.440.0330.10719.13
5.4.430.0000.12019.32
5.4.420.0070.11319.33
5.4.410.0130.10719.35
5.4.400.2330.00018.68
5.4.390.2200.00018.68
5.4.380.0270.11718.67
5.4.370.0170.11018.68
5.4.360.0170.10718.71
5.4.350.0270.10018.49
5.4.340.0230.10018.61
5.4.320.0070.07812.45
5.4.310.0050.08312.45
5.4.300.0060.09912.45
5.4.290.0060.08712.45
5.4.280.0100.09012.35
5.4.270.0030.16018.87
5.4.260.0070.11318.72
5.4.250.0100.12318.96
5.4.240.0200.14318.87
5.4.230.0170.11018.96
5.4.220.0030.12018.96
5.4.210.0100.10318.86
5.4.200.0130.14318.71
5.4.190.0100.15318.57
5.4.180.0200.10018.71
5.4.170.0070.12718.67
5.4.160.0070.11318.85
5.4.150.0130.15018.86
5.4.140.0100.14016.32
5.4.130.0070.11316.50
5.4.120.0170.15316.26
5.4.110.0070.11016.29
5.4.100.0170.14316.13
5.4.90.0100.15016.48
5.4.80.0100.11316.41
5.4.70.0030.15316.45
5.4.60.0030.12316.24
5.4.50.0130.14716.23
5.4.40.0100.14716.43
5.4.30.0200.14016.19
5.4.20.0100.11016.20
5.4.10.0170.10016.41
5.4.00.0070.11015.88
5.3.290.0050.09812.80
5.3.280.0100.17014.63
5.3.270.0130.17014.61
5.3.260.0130.12714.75
5.3.250.0070.16014.38
5.3.240.0000.14014.75
5.3.230.0170.12014.46
5.3.220.0070.19014.66
5.3.210.0100.14714.27
5.3.200.0070.14014.58
5.3.190.0070.14314.57
5.3.180.0130.17314.61
5.3.170.0000.13014.43
5.3.160.0130.15314.45
5.3.150.0170.16014.45
5.3.140.0200.13714.43
5.3.130.0100.20014.56
5.3.120.0030.15314.32
5.3.110.0030.20014.59
5.3.100.0100.13313.92
5.3.90.0100.17014.06
5.3.80.0130.12713.93
5.3.70.0300.17313.79
5.3.60.0130.14014.01
5.3.50.0130.18313.96
5.3.40.0100.17013.64
5.3.30.0100.17013.79
5.3.20.0200.16013.84
5.3.10.0030.13713.42
5.3.00.0030.18013.67
5.2.170.0100.22310.90
5.2.160.0030.19711.15
5.2.150.0030.21010.97
5.2.140.0170.21310.97
5.2.130.0070.18311.20
5.2.120.0130.20311.20
5.2.110.0070.14311.11
5.2.100.0100.21711.10
5.2.90.0130.20010.93
5.2.80.0270.20311.09
5.2.70.0030.17310.94
5.2.60.0030.19710.93
5.2.50.0100.24010.93
5.2.40.0000.17311.15
5.2.30.0030.23310.98
5.2.20.0130.16710.86
5.2.10.0230.18710.84
5.2.00.0070.24010.86
5.1.60.0100.17010.16
5.1.50.0170.20310.21
5.1.40.0130.1709.82
5.1.30.0130.19310.55
5.1.20.0130.20310.57
5.1.10.0170.13710.22
5.1.00.0030.17710.18
5.0.50.0100.4008.77
5.0.40.0100.3608.25
5.0.30.0170.5238.06
5.0.20.0030.2878.04
5.0.10.0100.3038.14
5.0.00.0100.4008.25
4.4.90.0030.4236.64
4.4.80.0170.4476.64
4.4.70.0030.3736.62
4.4.60.0030.3576.61
4.4.50.0000.2806.58
4.4.40.0230.4306.58
4.4.30.0000.3276.58
4.4.20.0130.3076.58
4.4.10.0030.3006.58
4.4.00.0070.4336.58
4.3.110.0200.3606.58
4.3.100.0030.3676.58
4.3.90.0000.3736.58
4.3.80.0030.3406.58
4.3.70.0100.3776.58
4.3.60.0030.2876.58
4.3.50.0030.3336.58
4.3.40.0070.4406.58
4.3.30.0000.3176.58
4.3.20.0000.3336.58
4.3.10.0000.3706.58
4.3.00.0030.2436.52

preferences:
35.17 ms | 400 KiB | 5 Q