3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 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.0000.07721.14
5.6.210.0100.05720.72
5.6.200.0070.08318.12
5.6.190.0100.04320.48
5.6.180.2430.04320.49
5.6.170.0200.05320.44
5.6.160.0130.06720.45
5.6.150.0130.07318.12
5.6.140.0100.08318.21
5.6.130.0100.08318.11
5.6.120.0070.08321.14
5.6.110.0170.07320.88
5.6.100.0030.04320.97
5.6.90.0030.08720.93
5.6.80.0170.07020.40
5.5.350.0100.07320.40
5.5.340.0200.06717.92
5.5.330.0070.06320.56
5.5.320.0300.06020.23
5.5.310.0270.04320.33
5.5.300.0000.04017.85
5.5.290.0000.05018.00
5.5.280.0170.07720.77
5.5.270.0100.07320.80
5.5.260.0000.05020.79
5.5.250.0130.07720.70
5.5.240.0100.04020.24
5.4.450.0270.05019.21
5.4.440.0230.06719.57
5.4.430.0300.07319.42
5.4.420.0200.05019.11
5.4.410.0230.05719.28
5.4.400.0100.05019.25
5.4.390.0200.03318.92
5.4.380.0230.03019.09
5.4.370.0130.03719.04
5.4.360.0370.05018.80
5.4.350.0100.04719.13
5.4.340.0170.03318.81
5.4.320.0100.04018.79
5.4.310.0170.03719.13
5.4.300.0130.03718.88
5.4.290.0200.03718.92
5.4.280.0070.04318.88
5.4.270.0170.03319.23
5.4.260.0170.04019.16
5.4.250.0200.03019.09
5.4.240.0170.03319.05
5.4.230.0130.03719.09
5.4.220.0170.03319.08
5.4.210.0170.03318.80
5.4.200.0230.03318.78
5.4.190.0300.04718.90
5.4.180.0170.06719.12
5.4.170.0230.07719.07
5.4.160.0270.06719.06
5.4.150.0270.05019.17
5.4.140.0270.06316.29
5.4.130.0270.06716.35
5.4.120.0270.04316.18
5.4.110.0230.05016.19
5.4.100.0130.04716.50
5.4.90.0270.05316.39
5.4.80.0230.06716.48
5.4.70.0200.06316.37
5.4.60.0300.06716.04
5.4.50.0230.06016.19
5.4.40.0200.05716.43
5.4.30.0200.04316.37
5.4.20.0270.06316.04
5.4.10.0270.07016.17
5.4.00.0230.05315.98
5.3.290.0170.04314.61
5.3.280.0130.03714.45
5.3.270.0270.03714.59
5.3.260.0270.06014.46
5.3.250.0270.06714.45
5.3.240.0200.07314.54
5.3.230.0270.05314.64
5.3.220.0230.04014.39
5.3.210.0300.06314.42
5.3.200.0270.03714.43
5.3.190.0300.04314.42
5.3.180.0300.03714.40
5.3.170.0300.06314.42
5.3.160.0270.05714.50
5.3.150.0270.06714.39
5.3.140.0230.07314.61
5.3.130.0270.06714.42
5.3.120.0270.06314.48
5.3.110.0230.06314.38
5.3.100.0270.05713.87
5.3.90.0200.05013.85
5.3.80.0230.05013.80
5.3.70.0270.04313.96
5.3.60.0200.04314.05
5.3.50.0270.03013.80
5.3.40.0230.05713.91
5.3.30.0200.05713.75
5.3.20.0270.06313.64
5.3.10.0270.07013.51
5.3.00.0300.06313.48

preferences:
153.39 ms | 1498 KiB | 7 Q