3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 101; switch (true) { default: less: echo "$foo < 100!"; break; default: more: echo "$foo > 100!"; break; default: same: echo "$foo == 100!"; break; default: if ($foo < 100) { goto less; } elseif ($foo > 100) { goto more; } else { goto same; } break; }

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.280.0030.07321.10
5.6.210.0070.07020.45
5.6.200.0130.04018.08
5.6.190.0100.06720.66
5.6.180.0230.05020.45
5.6.170.0500.05020.49
5.6.160.0030.05720.61
5.6.150.0070.03718.20
5.6.140.0030.08718.20
5.6.130.0000.07318.21
5.6.120.0070.08321.12
5.6.110.0130.06320.89
5.6.100.0070.08721.04
5.6.90.0130.06720.93
5.6.80.0130.05320.38
5.5.350.0100.08320.38
5.5.340.0130.08018.02
5.5.330.0030.08020.21
5.5.320.0330.03720.21
5.5.310.0270.04020.34
5.5.300.0070.08317.95
5.5.290.0000.05018.02
5.5.280.0130.07320.72
5.5.270.0100.08720.79
5.5.260.0000.05720.79
5.5.250.0070.05720.66
5.5.240.0300.06020.28
5.4.450.0130.07319.48
5.4.440.0070.07319.48
5.4.430.0100.04319.12
5.4.420.0530.04019.45
5.4.410.0430.06018.97
5.4.400.0200.03718.78
5.4.390.0230.04019.10
5.4.380.0200.03719.13
5.4.370.0270.05019.08
5.4.360.0270.03718.77
5.4.350.0230.04019.05
5.4.340.0270.05719.09
5.4.320.0270.07319.16
5.4.310.0200.03719.10
5.4.300.0270.06718.80
5.4.290.0200.05019.07
5.4.280.0170.04019.08
5.4.270.0470.02319.09
5.4.260.0170.04019.09
5.4.250.0230.03318.90
5.4.240.0300.04019.07
5.4.230.0170.04019.24
5.4.220.0170.04019.21
5.4.210.0300.04019.23
5.4.200.0200.03718.77
5.4.190.0200.03718.92
5.4.180.0300.04019.21
5.4.170.0230.03319.23
5.4.160.0170.04019.11
5.4.150.0200.03719.07
5.4.140.0170.03716.37
5.4.130.0130.03716.37
5.4.120.0230.03716.38
5.4.110.0170.03716.40
5.4.100.0230.03716.35
5.4.90.0170.03716.41
5.4.80.0200.04016.37
5.4.70.0200.04316.44
5.4.60.0170.03716.38
5.4.50.0230.03016.36
5.4.40.0330.03016.46
5.4.30.0170.03716.35
5.4.20.0170.03316.45
5.4.10.0230.04016.05
5.4.00.0130.03715.91
5.3.290.0170.05014.61
5.3.280.0170.03714.43
5.3.270.0170.04014.46
5.3.260.0200.03714.46
5.3.250.0230.04714.46
5.3.240.0300.06714.59
5.3.230.0200.03714.50
5.3.220.0170.06314.55
5.3.210.0200.06014.46
5.3.200.0070.05014.52
5.3.190.0170.04714.63
5.3.180.0200.03714.47
5.3.170.0170.03714.39
5.3.160.0200.03714.39
5.3.150.0130.05314.55
5.3.140.0100.04314.60
5.3.130.0070.04714.42
5.3.120.0170.03714.50
5.3.110.0300.02714.56
5.3.100.0200.04014.08
5.3.90.0200.05013.85
5.3.80.0200.04714.07
5.3.70.0270.03713.88
5.3.60.0230.03713.86
5.3.50.0330.05713.93
5.3.40.0270.03714.04
5.3.30.0270.06013.77
5.3.20.0270.03713.51
5.3.10.0300.05713.70
5.3.00.0200.04313.47

preferences:
141.32 ms | 1394 KiB | 7 Q