3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $y = 0; //dummy printf("<br>dummy#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>eval++#0 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { $y++; } printf("<br>no++#1 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { $y; } printf("<br>++no#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>++eval#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.0040.01116.45
7.3.00.0130.00516.35
7.2.130.0090.00616.74
7.2.120.0150.00616.67
7.2.110.0060.00816.69
7.2.100.0050.01016.55
7.2.90.0120.00916.49
7.2.80.0130.01116.58
7.2.70.0090.00716.61
7.2.60.0070.00916.72
7.2.50.0070.01116.80
7.2.40.0100.01116.88
7.2.30.0130.00716.67
7.2.20.0140.00916.74
7.2.10.0120.00616.62
7.2.00.0100.00816.77
7.1.250.0070.00515.63
7.1.70.0000.00717.03
7.1.60.0000.01819.40
7.1.50.0060.01216.97
7.1.00.0000.03722.40
7.0.200.0590.00714.57
7.0.140.0070.07321.93
7.0.120.0030.07021.96
7.0.60.0000.05719.98
7.0.50.0100.07717.90
7.0.40.0100.05720.10
7.0.30.0300.04320.09
7.0.20.0330.07020.33
7.0.10.0230.05020.13
7.0.00.0000.06020.19
5.6.280.0070.07020.78
5.6.210.0170.06020.63
5.6.200.0030.09018.10
5.6.190.0130.08020.32
5.6.180.0270.04020.63
5.6.170.0230.03320.34
5.6.160.0030.04320.49
5.6.150.0070.03718.15
5.6.140.0100.06718.16
5.6.130.0030.09018.14
5.6.120.0070.05021.05
5.6.110.0130.08320.99
5.6.100.0070.06721.01
5.6.90.0030.08321.04
5.6.80.0100.08020.39
5.6.70.4300.04320.37
5.5.350.0300.07720.43
5.5.340.0130.06018.02
5.5.330.0070.07020.23
5.5.320.0170.03720.21
5.5.310.0270.05720.21
5.5.300.0130.07717.90
5.5.290.0070.04017.92
5.5.280.0070.07020.96
5.5.270.0100.07720.68
5.5.260.0030.06020.88
5.5.250.0000.04320.58
5.5.240.0070.06720.26
5.4.450.0330.05019.39
5.4.440.0300.07719.47
5.4.430.0430.04719.41
5.4.420.0300.05319.52
5.4.410.0330.06319.00
5.4.400.0370.05718.92
5.4.390.0170.03719.24
5.4.380.0200.03719.21
5.4.370.0170.03719.13
5.4.360.0270.04319.13
5.4.350.0170.04018.80
5.4.340.0200.03719.21
5.4.320.0230.03319.09
5.4.310.0100.04719.16
5.4.300.0130.04018.91
5.4.290.0230.03019.08
5.4.280.0200.04718.91
5.4.270.0200.03719.09
5.4.260.0170.04719.13
5.4.250.0200.04019.08
5.4.240.0200.03319.08
5.4.230.0200.04719.14
5.4.220.0200.03719.08
5.4.210.0270.07319.10
5.4.200.0370.06018.78
5.4.190.0270.06718.91
5.4.180.0430.05719.07
5.4.170.0300.07719.05
5.4.160.0230.05319.06
5.4.150.0400.06319.07
5.4.140.0230.03716.29
5.4.130.0330.06716.26
5.4.120.0300.07016.28
5.4.110.0270.07016.08
5.4.100.0230.04016.39
5.4.90.0270.05016.46
5.4.80.0300.06716.37
5.4.70.0270.04016.37
5.4.60.0300.04016.40
5.4.50.0300.06316.36
5.4.40.0270.07016.31
5.4.30.0330.06316.38
5.4.20.0230.05316.36
5.4.10.0300.03716.36
5.4.00.0270.07715.89
5.3.290.0200.03314.52
5.3.280.0170.03714.59
5.3.270.0270.06714.57
5.3.260.0300.07014.47
5.3.250.0300.07314.46
5.3.240.0270.03714.50
5.3.230.0330.07314.56
5.3.220.0430.06014.42
5.3.210.0270.06014.49
5.3.200.0470.05014.43
5.3.190.0230.03714.42
5.3.180.0230.04714.53
5.3.170.0330.03314.56
5.3.160.0270.07314.45
5.3.150.0300.07014.56
5.3.140.0400.06314.55
5.3.130.0370.06014.54
5.3.120.0300.07014.43
5.3.110.0370.06714.40
5.3.100.0230.07313.91
5.3.90.0300.07013.88
5.3.80.0300.05714.12
5.3.70.0330.06714.08
5.3.60.0330.07313.86
5.3.50.0230.07313.96
5.3.40.0300.06713.93
5.3.30.0270.06313.76
5.3.20.0270.07713.62
5.3.10.0370.06713.46
5.3.00.0230.05313.60
5.2.170.0200.04312.20
5.2.160.0270.02712.20
5.2.150.0300.05712.20
5.2.140.0300.05012.20
5.2.130.0200.04012.20
5.2.120.0370.04712.20
5.2.110.0230.06312.20
5.2.100.0270.04012.20
5.2.90.0230.04712.20
5.2.80.0200.03312.20
5.2.70.0270.03312.20
5.2.60.0370.05012.20
5.2.50.0300.03312.20
5.2.40.0200.03312.20
5.2.30.0230.05712.20
5.2.20.0230.05312.20
5.2.10.0200.06012.20
5.2.00.0200.06012.20
5.1.60.0200.04312.20
5.1.50.0170.04712.20
5.1.40.0270.04312.20
5.1.30.0200.05012.20
5.1.20.0170.05312.20
5.1.10.0200.05712.20
5.1.00.0170.06012.20
5.0.50.0100.04312.20
5.0.40.0170.03312.20
5.0.30.0170.06012.20
5.0.20.0130.03312.20
5.0.10.0170.02312.20
5.0.00.0070.04012.20
4.4.90.0100.03012.20
4.4.80.0100.02312.20
4.4.70.0130.03312.20
4.4.60.0070.04012.20
4.4.50.0070.03712.20
4.4.40.0070.05012.20
4.4.30.0170.03012.20
4.4.20.0230.02312.20
4.4.10.0100.03312.20
4.4.00.0130.03312.20
4.3.110.0100.03712.20
4.3.100.0200.02312.20
4.3.90.0100.03312.20
4.3.80.0170.05012.20
4.3.70.0130.03312.20
4.3.60.0070.02312.20
4.3.50.0100.03712.20
4.3.40.0100.05312.20
4.3.30.0070.03312.20
4.3.20.0100.03312.20
4.3.10.0030.03312.20
4.3.00.0070.03712.20

preferences:
35.79 ms | 400 KiB | 5 Q