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.0070.08720.81
5.6.210.0030.08720.60
5.6.200.0070.07718.12
5.6.190.0130.05320.40
5.6.180.0270.07720.56
5.6.170.0230.07020.48
5.6.160.0100.08020.50
5.6.150.0070.08018.22
5.6.140.0070.03718.16
5.6.130.0070.08718.15
5.6.120.0130.07721.00
5.6.110.0130.08021.02
5.6.100.0100.07720.96
5.6.90.0070.04721.12
5.6.80.0000.04720.43
5.5.350.0070.08320.38
5.5.340.0030.04018.02
5.5.330.0070.05020.43
5.5.320.0230.04320.27
5.5.310.0270.04320.23
5.5.300.0070.06717.95
5.5.290.0100.08017.89
5.5.280.0070.04320.87
5.5.270.0070.08320.86
5.5.260.0100.08320.84
5.5.250.0100.08320.57
5.5.240.0230.07720.07
5.4.450.0170.03019.43
5.4.440.0200.04019.55
5.4.430.0170.04019.40
5.4.420.0330.04019.46
5.4.410.0400.03719.29
5.4.400.0970.03719.22
5.4.390.0270.04319.09
5.4.380.0470.07018.68
5.4.370.0470.04318.50
5.4.360.0400.05018.68
5.4.350.0300.05018.68
5.4.340.0570.06018.50
5.4.320.0100.04212.46
5.4.310.0060.03812.45
5.4.300.0060.03812.45
5.4.290.0090.03612.45
5.4.280.0070.03312.35
5.4.270.0050.03812.35
5.4.260.0080.03612.35
5.4.250.0070.03612.35
5.4.240.0070.03612.35
5.4.230.0050.03812.34
5.4.220.0050.03812.34
5.4.210.0080.03312.34
5.4.200.0060.03812.34
5.4.190.0080.03512.34
5.4.180.0050.03712.34
5.4.170.0040.03712.35
5.4.160.0040.03812.34
5.4.150.0070.03612.34
5.4.140.0050.03712.03
5.4.130.0080.03412.01
5.4.120.0060.03811.97
5.4.110.0050.03611.97
5.4.100.0070.03411.97
5.4.90.0050.03711.96
5.4.80.0040.03811.96
5.4.70.0070.03511.96
5.4.60.0090.03911.96
5.4.50.0040.03811.96
5.4.40.0070.03411.95
5.4.30.0070.03511.95
5.4.20.0040.03611.95
5.4.10.0030.03711.95
5.4.00.0060.03511.44
5.3.290.0080.04112.80
5.3.280.0070.04412.71
5.3.270.0070.03912.72
5.3.260.0060.03912.72
5.3.250.0080.03812.72
5.3.240.0090.04212.72
5.3.230.0080.04612.71
5.3.220.0080.04112.68
5.3.210.0110.04012.68
5.3.200.0050.04212.68
5.3.190.0050.03812.68
5.3.180.0050.03712.67
5.3.170.0070.03512.67
5.3.160.0070.03612.67
5.3.150.0040.03912.67
5.3.140.0070.03812.66
5.3.130.0080.04212.66
5.3.120.0060.04112.66
5.3.110.0090.04112.66
5.3.100.0050.04212.12
5.3.90.0040.03812.08
5.3.80.0070.03912.07
5.3.70.0070.03712.08
5.3.60.0060.03812.06
5.3.50.0070.03512.00
5.3.40.0060.03612.00
5.3.30.0090.03211.94
5.3.20.0040.03811.72
5.3.10.0070.03411.69
5.3.00.0040.03811.68

preferences:
139.9 ms | 1394 KiB | 7 Q