3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_bazzable($op) { switch ($op) { case 1: echo 'bazzable but 1'; case 2: default: return true; case 3: default: return true; case 4: default: return false; } } var_dump(is_bazzable(1)); var_dump(is_bazzable(2)); var_dump(is_bazzable(3)); var_dump(is_bazzable(4));

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.13
5.6.210.0070.08720.67
5.6.200.0030.07718.29
5.6.190.0130.06320.57
5.6.180.0300.07020.50
5.6.170.0370.04720.71
5.6.160.0130.07720.57
5.6.150.0230.07018.16
5.6.140.0130.05318.15
5.6.130.0030.05018.29
5.6.120.0170.07720.97
5.6.110.0100.06320.98
5.6.100.0130.07021.00
5.6.90.0030.06021.10
5.6.80.0030.04020.29
5.6.70.3000.03320.51
5.5.350.0170.07720.42
5.5.340.0030.08017.96
5.5.330.0070.04020.21
5.5.320.0330.04320.24
5.5.310.0170.04020.27
5.5.300.0170.07317.94
5.5.290.0100.07717.98
5.5.280.0170.07320.97
5.5.270.0070.07320.97
5.5.260.0230.07320.76
5.5.250.0100.07320.50
5.5.240.0030.07320.14
5.4.450.0430.03719.46
5.4.440.0300.05019.54
5.4.430.0230.05019.49
5.4.420.0430.04319.38
5.4.410.0170.04719.17
5.4.400.0670.04018.96
5.4.390.0670.03019.15
5.4.380.0470.05718.54
5.4.370.0470.06318.63
5.4.360.0400.06018.80
5.4.350.0500.04718.47
5.4.340.0370.05718.74
5.4.320.0090.04112.50
5.4.310.0080.04112.50
5.4.300.0030.03912.50
5.4.290.0060.03812.50
5.4.280.0030.03812.40
5.4.270.0030.04012.40
5.4.260.0070.03612.40
5.4.250.0030.04312.40
5.4.240.0090.03312.40
5.4.230.0050.03912.39
5.4.220.0070.03612.39
5.4.210.0070.03712.39
5.4.200.0120.03212.39
5.4.190.0050.03812.39
5.4.180.0070.05212.39
5.4.170.0070.03812.39
5.4.160.0060.03612.39
5.4.150.0060.03712.39
5.4.140.0070.03712.07
5.4.130.0050.03612.06
5.4.120.0060.03512.02
5.4.110.0080.03212.01
5.4.100.0010.03912.01
5.4.90.0030.03812.02
5.4.80.0030.03912.02
5.4.70.0050.03512.01
5.4.60.0080.03312.01
5.4.50.0050.03612.01
5.4.40.0080.04812.00
5.4.30.0050.03512.00
5.4.20.0020.03811.99
5.4.10.0030.03711.99
5.4.00.0050.03611.48
5.3.290.0080.03812.80
5.3.280.0070.03612.71
5.3.270.0100.03612.73
5.3.260.0060.04212.71
5.3.250.0100.05112.72
5.3.240.0050.03812.72
5.3.230.0080.04412.71
5.3.220.0110.03212.68
5.3.210.0030.04112.68
5.3.200.0040.03712.68
5.3.190.0060.03712.68
5.3.180.0030.03912.67
5.3.170.0080.03412.67
5.3.160.0040.03912.68
5.3.150.0060.03712.68
5.3.140.0060.03612.66
5.3.130.0060.04412.66
5.3.120.0040.04112.66
5.3.110.0020.04212.66
5.3.100.0040.03812.12
5.3.90.0060.04412.10
5.3.80.0050.03712.09
5.3.70.0060.03512.09
5.3.60.0070.03412.08
5.3.50.0080.03412.02
5.3.40.0080.03312.02
5.3.30.0060.03611.98
5.3.20.0050.03511.77
5.3.10.0070.04311.73
5.3.00.0060.03711.71
5.2.170.0050.0319.22
5.2.160.0050.0289.21
5.2.150.0040.0339.22
5.2.140.0040.0309.21
5.2.130.0040.0289.18
5.2.120.0030.0299.17
5.2.110.0060.0279.18
5.2.100.0040.0289.18
5.2.90.0050.0289.18
5.2.80.0040.0319.17
5.2.70.0060.0289.17
5.2.60.0040.0309.12
5.2.50.0060.0289.09
5.2.40.0060.0279.08
5.2.30.0030.0309.05
5.2.20.0060.0269.03
5.2.10.0050.0268.94
5.2.00.0080.0288.81
5.1.60.0040.0338.08
5.1.50.0040.0248.08
5.1.40.0050.0258.06
5.1.30.0030.0258.41
5.1.20.0070.0238.44
5.1.10.0010.0298.16
5.1.00.0020.0338.16
5.0.50.0030.0206.64
5.0.40.0020.0196.49
5.0.30.0040.0306.31
5.0.20.0030.0196.27
5.0.10.0000.0236.26
5.0.00.0060.0376.25
4.4.90.0020.0234.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0030.0174.76
4.4.50.0020.0154.77
4.4.40.0030.0254.71
4.4.30.0010.0174.76
4.4.20.0040.0254.85
4.4.10.0030.0164.85
4.4.00.0040.0244.75
4.3.110.0020.0164.66
4.3.100.0010.0174.67
4.3.90.0020.0164.64
4.3.80.0040.0254.58
4.3.70.0020.0174.63
4.3.60.0040.0124.63
4.3.50.0020.0174.63
4.3.40.0050.0294.53
4.3.30.0030.0213.30
4.3.20.0000.0203.28
4.3.10.0020.0163.24
4.3.00.0030.01315.90

preferences:
144.82 ms | 1394 KiB | 7 Q