3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "++i "; $start = microtime(true); for ($i = 0; $i < 100000000; ++$i); $delta_pre = microtime(true) - $start; printf('%.4F', $delta_pre); echo PHP_EOL; echo "i++ "; $start = microtime(true); for ($i = 0; $i < 100000000; $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.0031.26419.54
7.1.70.0001.46616.91
7.1.60.0131.28819.82
7.1.50.0101.32616.86
7.1.00.0031.38722.31
7.0.200.0171.67816.68
7.0.140.0071.34022.11
7.0.60.0131.49719.87
7.0.50.0071.50317.86
7.0.40.0001.60720.40
7.0.30.0571.32720.17
7.0.20.0301.36020.00
7.0.10.0271.52720.09
7.0.00.0071.35020.16
5.6.280.0002.50021.04
5.6.210.0072.49320.50
5.6.200.0132.48718.03
5.6.190.0102.49020.36
5.6.180.3372.16320.33
5.6.170.0272.47320.35
5.6.160.0102.49020.28
5.6.150.0132.48718.06
5.6.140.0102.49018.06
5.6.130.0002.50018.12
5.6.120.0002.50021.01
5.6.110.0172.48321.11
5.6.100.0102.49020.97
5.6.90.0172.48320.97
5.6.80.0072.49320.39
5.6.70.4402.06020.39
5.5.350.0202.48020.42
5.5.340.0002.50017.83
5.5.330.0072.49319.95
5.5.320.0202.46020.77
5.5.310.0302.47020.09
5.5.300.0032.49717.96
5.5.290.0072.49317.88
5.5.280.0332.40020.88
5.5.270.0132.40720.96
5.5.260.0172.48320.97
5.5.250.0272.42320.74
5.5.240.0132.42320.31
5.4.450.1202.35719.16
5.4.440.0872.39719.49
5.4.430.0702.31719.48
5.4.420.0172.32019.23
5.4.410.0072.47318.88
5.4.400.0372.44018.69
5.4.390.0232.47018.45
5.4.380.0172.03018.66
5.4.370.0202.43719.11
5.4.360.0132.16019.03
5.4.350.0072.00711.97
5.4.340.0201.98311.97
5.4.320.0111.99112.45
5.4.310.0081.99212.45
5.4.300.0271.96018.81
5.4.290.0132.02718.95
5.4.280.0131.95018.84
5.4.270.0072.44318.75
5.4.260.0132.44018.59
5.4.250.0131.79318.95
5.4.240.0172.39018.86
5.4.230.0232.42718.86
5.4.220.0172.45318.66
5.4.210.0232.26318.94
5.4.200.0202.46318.77
5.4.190.0272.43018.89
5.4.180.0102.45018.71
5.4.170.0032.41718.98
5.4.160.0032.45318.57
5.4.150.0172.46018.65
5.4.140.0232.40016.40
5.4.130.0132.45716.44
5.4.120.0102.40316.32
5.4.110.0232.39716.30
5.4.100.0172.44316.30
5.4.90.0202.43316.24
5.4.80.0132.34316.24
5.4.70.0232.44016.26
5.4.60.0132.45016.10
5.4.50.0332.39316.25
5.4.40.0032.47716.09
5.4.30.0202.41316.25
5.4.20.0202.42016.20
5.4.10.0172.44716.34
5.4.00.0182.36915.90
5.3.290.0101.99212.80
5.3.280.0172.44314.26
5.3.270.0202.43014.21
5.3.260.0202.45014.46
5.3.250.0102.45714.42
5.3.240.0172.43714.42
5.3.230.0072.45314.45
5.3.220.0032.44714.26
5.3.210.0072.40714.39
5.3.200.0032.45314.09
5.3.190.0102.47314.39
5.3.180.0102.40314.17
5.3.170.0302.43014.41
5.3.160.0132.45014.39
5.3.150.0102.44314.41
5.3.140.0032.40014.38
5.3.130.0172.43014.44
5.3.120.0202.38014.21
5.3.110.0072.36714.27
5.3.100.0202.36313.87
5.3.90.0132.38013.91
5.3.80.0232.36713.63
5.3.70.0272.33713.89
5.3.60.0202.36313.75
5.3.50.0132.39013.82
5.3.40.0102.27713.74
5.3.30.0302.12313.52
5.3.20.0172.41013.45
5.3.10.0102.32313.41
5.3.00.0172.38013.44
5.2.170.0232.39311.00
5.2.160.0172.38010.79
5.2.150.0172.38010.80
5.2.140.0032.44710.89
5.2.130.0132.38310.87
5.2.120.0132.32010.78
5.2.110.0202.35310.76
5.2.100.0102.24710.95
5.2.90.0202.34710.96
5.2.80.0232.29310.71
5.2.70.0032.26310.92
5.2.60.0132.31710.70
5.2.50.0072.46710.53
5.2.40.0132.35710.85
5.2.30.0172.32310.66
5.2.20.0002.46010.69
5.2.10.0132.38310.61
5.2.00.0172.31710.66
5.1.60.0072.4239.91
5.1.50.0072.3909.71
5.1.40.0132.4509.95
5.1.30.0272.1979.98
5.1.20.0232.33010.08
5.1.10.0132.3739.96
5.1.00.0132.3079.98
5.0.50.0102.4138.28
5.0.40.0202.4008.36
5.0.30.0202.4107.95
5.0.20.0072.4178.04
5.0.10.0032.4537.97
5.0.00.0032.4537.89
4.4.90.0132.3406.79
4.4.80.0172.4076.79
4.4.70.0032.4736.79
4.4.60.0132.3836.79
4.4.50.0032.3506.79
4.4.40.0102.4306.79
4.4.30.0102.4136.79
4.4.20.0072.3306.79
4.4.10.0302.3136.79
4.4.00.0002.3376.79
4.3.110.0202.4436.79
4.3.100.0072.3436.79
4.3.90.0072.4036.79
4.3.80.0072.4376.79
4.3.70.0032.3906.79
4.3.60.0002.4706.79
4.3.50.0132.4276.79
4.3.40.0132.2806.79
4.3.30.0032.3736.79
4.3.20.0032.4076.79
4.3.10.0002.4006.79
4.3.00.0002.49315.57

preferences:
33.01 ms | 400 KiB | 5 Q