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; } elseif ($foo == 100) { 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.0100.06721.07
5.6.210.0200.07020.56
5.6.200.0070.06318.19
5.6.190.0030.04320.35
5.6.180.3830.03320.68
5.6.170.0330.07020.50
5.6.160.0000.04320.70
5.6.150.0030.07718.09
5.6.140.0000.04018.06
5.6.130.0130.07318.11
5.6.120.0170.04321.02
5.6.110.0070.04021.13
5.6.100.0100.07321.04
5.6.90.0170.07721.01
5.6.80.0030.05320.53
5.5.350.0000.05020.41
5.5.340.0070.05717.98
5.5.330.0100.03320.43
5.5.320.0270.08320.18
5.5.310.0230.06020.25
5.5.300.0130.07017.98
5.5.290.0030.04017.91
5.5.280.0070.03720.86
5.5.270.0030.05320.75
5.5.260.0130.07720.79
5.5.250.0030.08720.69
5.5.240.0130.07020.18
5.4.450.0330.05019.21
5.4.440.0170.05019.39
5.4.430.0170.04019.42
5.4.420.0200.04019.56
5.4.410.0330.04719.00
5.4.400.0270.04318.78
5.4.390.0170.03718.81
5.4.380.0430.05718.53
5.4.370.0430.08718.75
5.4.360.0600.06318.78
5.4.350.0530.06318.72
5.4.340.0530.06718.77
5.4.320.0080.03312.45
5.4.310.0040.04012.45
5.4.300.0040.03812.45
5.4.290.0040.03912.45
5.4.280.0070.03312.35
5.4.270.0070.03912.35
5.4.260.0050.03812.35
5.4.250.0030.03912.35
5.4.240.0070.03612.35
5.4.230.0050.04012.34
5.4.220.0060.03712.34
5.4.210.0070.03312.34
5.4.200.0080.04912.34
5.4.190.0070.03512.34
5.4.180.0100.04112.34
5.4.170.0070.03412.35
5.4.160.0050.03512.34
5.4.150.0060.03412.34
5.4.140.0070.04212.02
5.4.130.0030.03612.02
5.4.120.0050.03411.97
5.4.110.0090.04311.97
5.4.100.0090.03211.97
5.4.90.0030.04811.96
5.4.80.0050.03711.96
5.4.70.0100.03811.96
5.4.60.0070.03911.96
5.4.50.0050.03511.96
5.4.40.0060.03311.95
5.4.30.0050.04311.95
5.4.20.0030.03811.95
5.4.10.0080.03611.95
5.4.00.0090.04211.43
5.3.290.0070.03812.80
5.3.280.0050.03912.70
5.3.270.0050.04212.72
5.3.260.0060.03812.72
5.3.250.0040.03812.72
5.3.240.0060.03612.71
5.3.230.0120.03912.71
5.3.220.0070.04112.68
5.3.210.0090.04612.68
5.3.200.0060.03812.68
5.3.190.0060.03812.68
5.3.180.0110.03512.68
5.3.170.0080.03912.67
5.3.160.0080.03612.67
5.3.150.0050.04212.68
5.3.140.0050.04112.66
5.3.130.0050.03912.66
5.3.120.0070.03712.66
5.3.110.0040.04112.66
5.3.100.0060.04012.12
5.3.90.0100.03912.08
5.3.80.0100.03612.08
5.3.70.0060.03912.07
5.3.60.0070.03612.06
5.3.50.0090.03512.00
5.3.40.0050.03712.00
5.3.30.0050.04211.94
5.3.20.0060.03811.72
5.3.10.0130.03411.69
5.3.00.0100.04011.68

preferences:
148.68 ms | 1386 KiB | 7 Q