3v4l.org

run code in 300+ PHP versions simultaneously
<?php $calendar = array (January, February, March, April, May, June, July, August, September, October, November, December); while($e < sizeof($calendar)) { $k++; $days = 30; $days2 = 31; switch ($calendar[$e]) { case $calendar[0]: echo "Month ",$k,": $calendar[$e] has $days days <br>"; break; case $calendar[1]: echo "Month $k: $calendar[$e] has 28 or 29 days <br>"; break; case $calendar[2]: echo "Month $k: $calendar[$e] has $days2 days <br>"; break; case $calendar[3]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[4]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[5]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[6]: echo "Month $k: $calendar[$e] has $days2 days <br>"; break; case $calendar[7]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[8]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[9]: echo "Month $k: $calendar[$e] has $days2 days <br>"; break; case $calendar[10]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[11]: echo "Month $k: $calendar[$e] has $days2 days <br>"; break; } $e++; echo $e; }

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)
8.3.70.0140.00718.56
8.3.60.0180.00418.68
8.3.50.0240.00721.15
8.3.40.0140.00718.96
8.3.30.0080.00620.41
8.3.20.0080.00020.39
8.3.10.0040.00420.95
8.3.00.0040.00423.52
8.2.180.0150.00416.75
8.2.170.0140.00322.96
8.2.160.0070.01420.29
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00020.94
8.2.110.0070.00419.45
8.2.100.0080.00417.65
8.2.90.0050.00319.13
8.2.80.0040.00419.45
8.2.70.0000.00817.63
8.2.60.0060.00317.80
8.2.50.0050.00518.07
8.2.40.0000.00818.22
8.2.30.0070.00019.41
8.2.20.0020.00517.77
8.2.10.0040.00417.86
8.2.00.0060.00317.66
8.1.280.0060.01025.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00322.52
8.1.230.0090.00321.03
8.1.220.0040.00418.77
8.1.210.0040.00418.85
8.1.200.0050.00517.35
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0000.00918.65
8.1.160.0000.00718.89
8.1.150.0040.00418.53
8.1.140.0040.00417.35
8.1.130.0040.00417.36
8.1.120.0000.00717.36
8.1.110.0100.00017.50
8.1.100.0000.00717.43
8.1.90.0000.00717.52
8.1.80.0000.00717.34
8.1.70.0040.00417.36
8.1.60.0040.00417.58
8.1.50.0050.00217.43
8.1.40.0050.00517.47
8.1.30.0040.00417.62
8.1.20.0030.00617.68
8.1.10.0050.00317.58
8.1.00.0040.00417.50
8.0.300.0060.00320.01
8.0.290.0040.00417.41
8.0.280.0050.00318.50
8.0.270.0000.00717.20
8.0.260.0070.00016.92
8.0.250.0040.00417.08
8.0.240.0030.00316.99
8.0.230.0050.00217.05
8.0.220.0030.00316.99
8.0.210.0050.00217.01
8.0.200.0030.00316.98
8.0.190.0060.00317.02
8.0.180.0040.00417.05
8.0.170.0040.00316.98
8.0.160.0030.00417.06
8.0.150.0000.00716.92
8.0.140.0040.00416.93
8.0.130.0030.00313.48
8.0.120.0030.00516.93
8.0.110.0050.00316.86
8.0.100.0000.00716.86
8.0.90.0040.00417.04
8.0.80.0100.01017.00
8.0.70.0000.00816.89
8.0.60.0040.00416.86
8.0.50.0040.00417.04
8.0.30.0110.00817.30
8.0.20.0130.00517.40
8.0.10.0000.00717.11
8.0.00.0060.01216.85
7.4.330.0050.00016.79
7.4.320.0030.00516.60
7.4.300.0030.00316.52
7.4.290.0080.00016.67
7.4.280.0000.00716.66
7.4.270.0080.00016.63
7.4.260.0000.00613.28
7.4.250.0040.00416.55
7.4.240.0070.00016.61
7.4.230.0000.00716.77
7.4.220.0190.01116.69
7.4.210.0070.00716.70
7.4.200.0000.00716.74
7.4.190.0070.00016.83
7.4.160.0130.00616.70
7.4.150.0100.00717.40
7.4.140.0100.00917.86
7.4.130.0160.00416.80
7.4.120.0110.00716.54
7.4.110.0100.00716.61
7.4.100.0070.01016.71
7.4.90.0060.01316.70
7.4.80.0150.01219.39
7.4.70.0130.00316.60
7.4.60.0150.00716.65
7.4.50.0020.00216.50
7.4.40.0070.01122.77
7.4.30.0000.01916.69
7.4.00.0060.00915.05
7.3.330.0060.00013.21
7.3.320.0000.00513.19
7.3.310.0030.00516.63
7.3.300.0070.00016.50
7.3.290.0070.00716.52
7.3.280.0090.00716.47
7.3.270.0130.00417.40
7.3.260.0090.01018.24
7.3.250.0030.01716.53
7.3.240.0110.00616.67
7.3.230.0090.00916.39
7.3.210.0100.00716.61
7.3.200.0080.01119.39
7.3.190.0120.00616.47
7.3.180.0070.01016.70
7.3.170.0130.00316.61
7.3.160.0090.00616.57
7.3.120.0030.01014.95
7.3.110.0030.01015.12
7.3.100.0060.00615.05
7.3.90.0040.01415.05
7.3.80.0040.00714.88
7.3.70.0000.01414.79
7.3.60.0060.00814.82
7.3.50.0030.00914.99
7.3.40.0030.00915.03
7.3.30.0040.01214.99
7.3.20.0070.00716.75
7.3.10.0080.00416.68
7.3.00.0070.01016.52
7.2.330.0090.00916.61
7.2.320.0060.01216.79
7.2.310.0160.00816.43
7.2.300.0070.01016.80
7.2.290.0150.00316.83
7.2.240.0070.01115.14
7.2.230.0040.01415.27
7.2.220.0110.00715.21
7.2.210.0110.00715.19
7.2.200.0060.00315.10
7.2.190.0070.00715.14
7.2.180.0100.00715.25
7.2.170.0040.01115.22
7.2.160.0060.01014.96
7.2.150.0090.00916.59
7.2.140.0110.00716.61
7.2.130.0130.00616.89
7.2.120.0080.01116.98
7.2.110.0060.00616.91
7.2.100.0030.01316.95
7.2.90.0070.01316.97
7.2.80.0080.00816.73
7.2.70.0040.01116.88
7.2.60.0050.01117.04
7.2.50.0130.01016.58
7.2.40.0190.00616.88
7.2.30.0120.00417.10
7.2.20.0070.01116.83
7.2.10.0160.00616.91
7.2.00.0050.01318.19
7.1.330.0000.01715.84
7.1.320.0000.01015.71
7.1.310.0120.00315.91
7.1.300.0030.00815.54
7.1.290.0030.01315.89
7.1.280.0040.01115.68
7.1.270.0040.00715.84
7.1.260.0060.00915.72
7.1.250.0070.01115.98
7.1.200.0060.00915.55
7.1.100.0060.00617.77
7.1.70.0020.00517.36
7.1.60.0040.01119.17
7.1.50.0030.00916.78
7.1.00.0000.03722.32
7.0.200.0100.00016.94
7.0.140.0000.07722.05
7.0.100.0100.04720.04
7.0.90.0000.05019.94
7.0.80.0070.03320.11
7.0.70.0070.03720.10
7.0.60.0030.05319.96
7.0.50.0030.07020.32
7.0.40.0070.04020.15
7.0.30.0100.04320.19
7.0.20.0030.05320.00
7.0.10.0070.08320.07
7.0.00.0070.04020.01
5.6.280.0030.07321.14
5.6.250.0100.06320.69
5.6.240.0070.03720.78
5.6.230.0030.07320.59
5.6.220.0130.08020.72
5.6.210.0000.04320.61
5.6.200.0030.04321.11
5.6.190.0100.03721.04
5.6.180.0030.04021.04
5.6.170.0070.04321.13
5.6.160.0000.08020.96
5.6.150.0070.04321.07
5.6.140.0030.07721.06
5.6.130.0100.04321.07
5.6.120.0100.04321.04
5.6.110.0030.06320.96
5.6.100.0070.06721.09
5.6.90.0030.06020.95
5.6.80.0030.08020.45
5.6.70.0000.06720.34
5.6.60.0070.04720.49
5.6.50.0170.07320.44
5.6.40.0100.07720.51
5.6.30.0100.07320.52
5.6.20.0030.08020.50
5.6.10.0130.03720.43
5.6.00.0170.06320.47
5.5.380.0070.04020.57
5.5.370.0070.08720.44
5.5.360.0100.06720.41
5.5.350.0000.04320.45
5.5.340.0100.05320.91
5.5.330.0030.03720.90
5.5.320.0100.06720.93
5.5.310.0070.03720.93
5.5.300.0070.03720.80
5.5.290.0130.07020.66
5.5.280.0030.04720.79
5.5.270.0100.07320.77
5.5.260.0030.04320.81
5.5.250.0030.04020.75
5.5.240.0200.06020.18
5.5.230.0130.07020.18
5.5.220.0230.05720.30
5.5.210.0100.07720.23
5.5.200.0070.07720.20
5.5.190.0130.06720.14
5.5.180.0070.04020.17
5.5.160.0100.06020.28
5.5.150.0030.07720.24
5.5.140.0100.07720.01
5.5.130.0030.08020.14
5.5.120.0070.04320.01
5.5.110.0070.07320.16
5.5.100.0000.08320.10
5.5.90.0200.06320.19
5.5.80.0070.06720.08
5.5.70.0100.04020.16
5.5.60.0130.07020.08
5.5.50.0030.07020.02
5.5.40.0130.06720.08
5.5.30.0030.07020.10
5.5.20.0030.08319.95
5.5.10.0030.08020.07
5.5.00.0030.08020.05
5.4.450.0100.05319.41
5.4.440.0070.03319.14
5.4.430.0130.04319.13
5.4.420.0030.06319.55
5.4.410.0030.08319.23
5.4.400.0030.07718.97
5.4.390.0100.08019.04
5.4.380.0070.07319.15
5.4.370.0100.07019.15
5.4.360.0070.04318.79
5.4.350.0030.04719.04
5.4.340.0070.06719.13
5.4.320.0000.08018.90
5.4.310.0070.07719.03
5.4.300.0070.07018.94
5.4.290.0170.07019.20
5.4.280.0000.06718.98
5.4.270.0100.07719.10
5.4.260.0070.07318.89
5.4.250.0170.06719.09
5.4.240.0070.08018.80
5.4.230.0070.04319.00
5.4.220.0070.07319.11
5.4.210.0030.08018.78
5.4.200.0070.08318.98
5.4.190.0030.07718.97
5.4.180.0030.04318.96
5.4.170.0030.05719.04
5.4.160.0070.07719.21
5.4.150.0030.07718.96
5.4.140.0100.07316.38
5.4.130.0030.05716.29
5.4.120.0130.06316.36
5.4.110.0130.07016.32
5.4.100.0130.06716.33
5.4.90.0100.06016.21
5.4.80.0000.08016.31
5.4.70.0130.06316.20
5.4.60.0070.07016.31
5.4.50.0070.05316.42
5.4.40.0130.05316.29
5.4.30.0100.06016.24
5.4.20.0030.07316.33
5.4.10.0100.07016.42
5.4.00.0070.07015.86
5.3.290.0070.06314.66
5.3.280.0070.06714.62
5.3.270.0100.07314.45
5.3.260.0100.06714.48
5.3.250.0070.07314.45
5.3.240.0170.06714.62
5.3.230.0030.07714.61
5.3.220.0000.08314.59
5.3.210.0170.07014.45
5.3.200.0100.06714.53
5.3.190.0070.07314.55
5.3.180.0030.08014.45
5.3.170.0030.08014.55
5.3.160.0070.07314.59
5.3.150.0100.07014.41
5.3.140.0130.06314.43
5.3.130.0130.06714.52
5.3.120.0030.07714.54
5.3.110.0070.07714.45
5.3.100.0030.06014.04
5.3.90.0000.06714.00
5.3.80.0030.07314.02
5.3.70.0070.07713.81
5.3.60.0000.08013.88
5.3.50.0130.07313.95
5.3.40.0130.06713.91
5.3.30.0100.07013.93
5.3.20.0070.06713.63
5.3.10.0130.06013.66
5.3.00.0030.07313.43
5.2.170.0070.04011.17
5.2.160.0030.06311.17
5.2.150.0070.06011.21
5.2.140.0100.06011.23
5.2.130.0070.06011.05
5.2.120.0100.05710.98
5.2.110.0070.06011.05
5.2.100.0030.04011.18
5.2.90.0100.05710.98
5.2.80.0000.06711.18
5.2.70.0070.06310.99
5.2.60.0030.06011.13
5.2.50.0030.06311.07
5.2.40.0070.05011.03
5.2.30.0100.05711.01
5.2.20.0030.06311.07
5.2.10.0030.04310.99
5.2.00.0070.06010.58
5.1.60.0000.06010.10
5.1.50.0070.05710.02
5.1.40.0070.0339.86
5.1.30.0030.06010.36
5.1.20.0130.04310.43
5.1.10.0070.05010.21
5.1.00.0130.04710.09
5.0.50.0070.0438.70
5.0.40.0030.0438.56
5.0.30.0070.0678.30
5.0.20.0000.0308.25
5.0.10.0030.0308.34
5.0.00.0030.0638.06
4.4.90.0000.0308.01
4.4.80.0000.0378.01
4.4.70.0030.0378.01
4.4.60.0000.0278.01
4.4.50.0030.0238.01
4.4.40.0070.0438.01
4.4.30.0000.0408.01
4.4.20.0000.0378.01
4.4.10.0000.0378.01
4.4.00.0070.0508.01
4.3.110.0070.0308.01
4.3.100.0030.0178.01
4.3.90.0000.0378.01
4.3.80.0000.0538.01
4.3.70.0100.0278.01
4.3.60.0070.0308.01
4.3.50.0130.0238.01
4.3.40.0000.0538.01
4.3.30.0000.0378.01
4.3.20.0000.0338.01
4.3.10.0030.0338.01
4.3.00.0000.0238.01

preferences:
43.53 ms | 401 KiB | 5 Q