3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($a=0;$a<=100;$a++){ if($a % 3 == 0 or $a % 5 == 0){ if($a % 3 == 0) print "Foo"; if($a % 5 == 0) print "Bar"; } else { print $a } print ", "; }

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)
5.6.80.0070.06320.48
5.5.240.0130.07020.23
5.4.400.0930.06719.38
5.4.390.0200.05318.73
5.4.380.0130.08018.53
5.4.370.0200.07718.53
5.4.360.0170.07318.63
5.4.350.0270.05318.63
5.4.340.0300.04018.48
5.4.320.0170.07018.80
5.4.310.0170.07018.73
5.4.300.0130.07018.71
5.4.290.0100.06018.78
5.4.280.0200.05318.75
5.4.270.0130.06018.78
5.4.260.0170.06318.78
5.4.250.0230.05318.77
5.4.240.0130.05318.58
5.4.230.0130.05718.74
5.4.220.0230.05018.83
5.4.210.0170.05718.57
5.4.200.0200.04716.61
5.4.190.0200.06718.79
5.4.180.0200.06018.43
5.4.170.0300.06318.55
5.4.160.0200.07018.58
5.4.150.0100.07718.50
5.4.140.0170.05316.42
5.4.130.0300.05316.43
5.4.120.0130.06016.17
5.4.110.0100.05716.27
5.4.100.0170.05316.20
5.4.90.0200.04716.28
5.4.80.0100.06016.26
5.4.70.0130.06016.25
5.4.60.0200.06716.27
5.4.50.0100.07716.28
5.4.40.0330.03716.38
5.4.30.0230.04316.25
5.4.20.0200.05316.29
5.4.10.0170.05016.17
5.4.00.0200.06015.73
5.3.290.0330.06014.58
5.3.280.0200.05014.63
5.3.270.0270.05014.59
5.3.260.0200.05314.50
5.3.250.0170.05314.55
5.3.240.0230.05714.71
5.3.230.0330.04014.60
5.3.220.0230.04714.55
5.3.210.0100.06014.54
5.3.200.0170.05014.52
5.3.190.0230.04714.57
5.3.180.0170.07314.60
5.3.170.0200.05014.55
5.3.160.0270.04314.57
5.3.150.0130.05714.56
5.3.140.0130.05314.52
5.3.130.0170.05314.65
5.3.120.0230.05014.55
5.3.110.0230.07014.63
5.3.100.0170.05714.14
5.3.90.0170.05314.00
5.3.80.0200.05014.01
5.3.70.0170.05314.00
5.3.60.0130.05313.92
5.3.50.0100.05713.99
5.3.40.0100.05713.94
5.3.30.0100.05313.90
5.3.20.0070.06013.78
5.3.10.0130.05313.57
5.3.00.0170.05013.57
5.2.170.0130.04011.29
5.2.160.0130.04011.11
5.2.150.0130.04011.32
5.2.140.0070.05011.19
5.2.130.0130.04011.09
5.2.120.0130.05711.09
5.2.110.0100.06011.11
5.2.100.0270.04311.14
5.2.90.0100.05711.26
5.2.80.0030.05011.05
5.2.70.0100.04311.08
5.2.60.0200.03311.02
5.2.50.0070.05011.05
5.2.40.0070.04710.97
5.2.30.0130.04011.02
5.2.20.0170.04710.95
5.2.10.0200.04710.96
5.2.00.0030.04710.85
5.1.60.0100.04310.11
5.1.50.0130.04310.01
5.1.40.0100.05010.00
5.1.30.0070.05710.37
5.1.20.0200.04010.42
5.1.10.0130.04310.14
5.1.00.0200.02710.13
5.0.50.0070.0278.57
5.0.40.0030.0308.39
5.0.30.0100.0408.24
5.0.20.0030.0308.29
5.0.10.0070.0308.34
5.0.00.0070.0438.20
4.4.90.0000.0275.93
4.4.80.0070.0205.87
4.4.70.0070.0205.89
4.4.60.0030.0235.90
4.4.50.0030.0235.95
4.4.40.0000.0405.92
4.4.30.0070.0205.87
4.4.20.0130.0205.95
4.4.10.0030.0235.92
4.4.00.0070.0335.90
4.3.110.0100.0175.88
4.3.100.0070.0205.84
4.3.90.0070.0235.84
4.3.80.0070.0335.91
4.3.70.0030.0305.77
4.3.60.0030.0335.89
4.3.50.0130.0205.89
4.3.40.0030.0375.79
4.3.30.0000.0274.60
4.3.20.0030.0234.54
4.3.10.0070.0234.50
4.3.00.0130.03014.42

preferences:
135.24 ms | 1394 KiB | 7 Q