3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch (2) { case 1: echo 'bazzable but 1'; break; default: echo "first default\n"; break; default: echo "second default\n"; }

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.07320.85
5.6.210.0070.08720.49
5.6.200.0030.08718.12
5.6.190.0030.06020.45
5.6.180.3000.04020.61
5.6.170.0270.04020.47
5.6.160.0000.08020.46
5.6.150.0130.06718.16
5.6.140.0000.04318.11
5.6.130.0100.07718.20
5.6.120.0130.07721.00
5.6.110.0130.07021.10
5.6.100.0100.08020.95
5.6.90.0100.06021.09
5.6.80.0100.08020.48
5.6.70.4430.03720.40
5.5.350.0230.04020.43
5.5.340.0100.08018.01
5.5.330.0100.05020.17
5.5.320.3700.04720.30
5.5.310.0170.05720.26
5.5.300.0100.05017.95
5.5.290.0030.07317.91
5.5.280.0070.03720.98
5.5.270.0030.04320.75
5.5.260.0070.07020.63
5.5.250.0070.07020.54
5.5.240.0270.06320.14
5.4.450.1070.03719.51
5.4.440.0730.04719.07
5.4.430.0330.03719.13
5.4.420.0300.04719.48
5.4.410.0200.04319.02
5.4.400.0300.04018.89
5.4.390.0200.04319.25
5.4.380.0930.06318.66
5.4.370.0970.06018.61
5.4.360.0730.05018.56
5.4.350.0700.05718.69
5.4.340.0770.04318.70
5.4.320.0060.04012.45
5.4.310.0060.03912.45
5.4.300.0060.03712.45
5.4.290.0060.04112.45
5.4.280.0070.03612.34
5.4.270.0060.03512.35
5.4.260.0050.04412.35
5.4.250.0060.04112.34
5.4.240.0040.03812.34
5.4.230.0060.03912.34
5.4.220.0040.03812.34
5.4.210.0070.03412.34
5.4.200.0040.04112.34
5.4.190.0050.03912.34
5.4.180.0080.03312.33
5.4.170.0060.03612.34
5.4.160.0070.03612.34
5.4.150.0060.03612.34
5.4.140.0110.03212.02
5.4.130.0050.03812.01
5.4.120.0100.03111.97
5.4.110.0060.03611.96
5.4.100.0060.03611.96
5.4.90.0070.04011.96
5.4.80.0110.03511.96
5.4.70.0050.03711.96
5.4.60.0050.04411.96
5.4.50.0100.04711.96
5.4.40.0120.04211.95
5.4.30.0090.04211.95
5.4.20.0050.03511.95
5.4.10.0080.03111.95
5.4.00.0040.03711.44
5.3.290.0070.04212.80
5.3.280.0070.03612.70
5.3.270.0080.03712.72
5.3.260.0070.04212.72
5.3.250.0110.03312.72
5.3.240.0050.03812.72
5.3.230.0060.03712.71
5.3.220.0070.03512.68
5.3.210.0070.03912.68
5.3.200.0070.03812.68
5.3.190.0050.04112.68
5.3.180.0090.03512.68
5.3.170.0080.03512.67
5.3.160.0090.03412.67
5.3.150.0050.04212.68
5.3.140.0030.03912.66
5.3.130.0100.04712.66
5.3.120.0080.04212.66
5.3.110.0080.04212.66
5.3.100.0070.03712.12
5.3.90.0070.04112.08
5.3.80.0070.03812.07
5.3.70.0060.03712.08
5.3.60.0040.03812.06
5.3.50.0050.04312.00
5.3.40.0070.03512.00
5.3.30.0080.03611.94
5.3.20.0080.03411.72
5.3.10.0050.03511.69
5.3.00.0110.03711.67

preferences:
147.61 ms | 1394 KiB | 7 Q