3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { ++$y; } printf("<br>#0 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { eval('++$y;'); } printf("<br>#1 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { ++$y; } printf("<br>#0 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { eval('++$y;'); } printf("<br>#1 RESULT %d, DONE IN %f", $y, microtime(true) - $start);

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.3.10.0130.00316.32
7.3.00.0100.00316.67
7.2.130.0100.00716.16
7.2.120.0120.00616.53
7.2.110.0120.00816.28
7.2.100.0110.00716.13
7.2.90.0130.00316.46
7.2.80.0100.01016.49
7.2.70.0100.01016.20
7.2.60.0090.00616.52
7.2.50.0080.01216.13
7.2.40.0180.00916.54
7.2.30.0140.00816.26
7.2.20.0160.00316.34
7.2.10.0130.00316.57
7.2.00.0120.00818.04
7.1.250.0070.01115.23
7.1.70.0000.01017.30
7.1.60.0070.01819.40
7.1.50.0100.01417.02
7.1.00.0000.06722.28
7.0.200.0030.00914.70
7.0.140.0100.06721.92
7.0.120.0070.06322.02
7.0.60.0000.04319.96
7.0.50.0130.05017.89
7.0.40.0130.09020.24
7.0.30.0170.05720.09
7.0.20.0200.08720.20
7.0.10.0000.04720.20
7.0.00.0070.08320.19
5.6.280.0000.07720.91
5.6.210.0200.06720.63
5.6.200.0070.03718.17
5.6.190.0100.05320.27
5.6.180.3830.03720.44
5.6.170.0300.07020.54
5.6.160.0070.07320.47
5.6.150.0070.07718.12
5.6.140.0070.07318.12
5.6.130.0170.07018.11
5.6.120.0070.06721.12
5.6.110.0070.06320.98
5.6.100.0170.07020.94
5.6.90.0070.08021.05
5.6.80.0130.07320.39
5.5.350.0300.06720.41
5.5.340.0100.07717.97
5.5.330.0030.08020.37
5.5.320.0300.07320.18
5.5.310.0430.07320.29
5.5.300.0000.06017.98
5.5.290.0100.03317.95
5.5.280.0030.05720.97
5.5.270.0030.08020.88
5.5.260.0030.08720.73
5.5.250.0130.07720.68
5.5.240.3570.04320.29
5.4.450.0130.06319.45
5.4.440.0070.08319.24
5.4.430.0130.06019.50
5.4.420.0070.04019.11
5.4.410.0070.04319.37
5.4.400.0130.07018.81
5.4.390.0030.06018.80
5.4.380.0100.06018.79
5.4.370.0100.07319.08
5.4.360.0100.07719.18
5.4.350.0000.04319.14
5.4.340.0030.07318.91
5.4.320.0030.04319.18
5.4.310.0000.04019.18
5.4.300.0030.03719.17
5.4.290.0130.02719.08
5.4.280.0000.04019.17
5.4.270.0000.04018.91
5.4.260.0030.03719.14
5.4.250.0170.02319.13
5.4.240.0070.04718.91
5.4.230.0070.03319.17
5.4.220.0030.04719.11
5.4.210.0030.03718.91
5.4.200.0030.04019.17
5.4.190.0030.04019.13
5.4.180.0030.03719.01
5.4.170.0000.04018.77
5.4.160.0000.04018.89
5.4.150.0000.04019.15
5.4.140.0070.03016.39
5.4.130.0070.03016.33
5.4.120.0100.03316.26
5.4.110.0030.04716.29
5.4.100.0000.03716.25
5.4.90.0130.03016.15
5.4.80.0070.06016.29
5.4.70.0070.04316.33
5.4.60.0200.06316.18
5.4.50.0230.05016.21
5.4.40.0070.06016.30
5.4.30.0030.06316.24
5.4.20.0100.04016.29
5.4.10.0000.05716.38
5.4.00.0030.08015.82
5.3.290.0100.03014.62
5.3.280.0100.03314.53
5.3.270.0100.03714.55
5.3.260.0130.03714.41
5.3.250.0030.04014.65
5.3.240.0070.03314.58
5.3.230.0030.03714.55
5.3.220.0070.03314.53
5.3.210.0030.03714.51
5.3.200.0000.04014.59
5.3.190.0000.04014.54
5.3.180.0070.04014.39
5.3.170.0030.04314.39
5.3.160.0130.05314.59
5.3.150.0070.07714.66
5.3.140.0130.06314.59
5.3.130.0100.05714.35
5.3.120.0100.06714.57
5.3.110.0070.08014.34
5.3.100.0130.06714.13
5.3.90.0130.06713.98
5.3.80.0000.05313.84
5.3.70.0130.07314.05
5.3.60.0030.04013.95
5.3.50.0100.06313.89
5.3.40.0100.07013.89
5.3.30.0030.06013.88
5.3.20.0070.07313.68
5.3.10.0070.04313.62
5.3.00.0070.07313.59
5.2.170.0100.05711.06
5.2.160.0030.04011.05
5.2.150.0170.02711.33
5.2.140.0030.07011.25
5.2.130.0030.03710.99
5.2.120.0070.03311.01
5.2.110.0100.05311.12
5.2.100.0070.04311.27
5.2.90.0170.05011.01
5.2.80.0030.04010.93
5.2.70.0130.03310.98
5.2.60.0000.03711.21
5.2.50.0130.05010.96
5.2.40.0030.03310.97
5.2.30.0030.06010.95
5.2.20.0000.04010.97
5.2.10.0070.05710.86
5.2.00.0030.05710.61
5.1.60.0170.02310.02
5.1.50.0070.02310.16
5.1.40.0030.02310.06
5.1.30.0070.05710.34
5.1.20.0030.02710.37
5.1.10.0000.03310.18
5.1.00.0070.02710.07
5.0.50.0030.0478.58
5.0.40.0000.0208.57
5.0.30.0100.0638.43
5.0.20.0030.0278.43
5.0.10.0000.0338.43
5.0.00.0000.0708.43
4.4.90.0030.0238.43
4.4.80.0000.0378.43
4.4.70.0070.0138.43
4.4.60.0000.0238.43
4.4.50.0000.0378.43
4.4.40.0000.0438.43
4.4.30.0030.0178.43
4.4.20.0000.0208.43
4.4.10.0000.0208.43
4.4.00.0000.0538.43
4.3.110.0030.0308.43
4.3.100.0000.0308.43
4.3.90.0030.0338.43
4.3.80.0100.0478.43
4.3.70.0030.0378.43
4.3.60.0100.0278.43
4.3.50.0030.0208.43
4.3.40.0000.0378.43
4.3.30.0000.0308.43
4.3.20.0000.0338.43
4.3.10.0000.0308.43
4.3.00.0030.0178.43

preferences:
42.05 ms | 401 KiB | 5 Q