3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('first Monday of this month'); echo $dt->format('W'); $month = "3"; $year = "2014"; $beg = (int) date('W', strtotime("first monday of $year-$month")); $end = (int) date('W', strtotime("last monday of $year-$month")); print(join(', ', range($beg, $end)));
based on 9qnsh

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0230.00798.97
7.3.0rc30.1110.00316.36
7.3.0beta10.0000.00712.75
7.3.0alpha10.0030.00612.89
7.2.60.0000.01417.22
7.2.50.0150.00616.85
7.1.200.0070.00716.06
7.1.70.0030.00717.46
7.1.60.0110.01419.32
7.1.50.0070.01316.96
7.1.00.0070.07322.27
7.0.200.0040.00417.08
7.0.140.0070.07322.08
7.0.80.0000.08020.17
7.0.70.0070.05019.83
7.0.60.0030.08020.27
7.0.50.0030.09020.70
7.0.40.0030.08020.39
7.0.30.0070.05720.23
7.0.20.0100.08020.39
7.0.10.0030.05320.35
7.0.00.0170.04320.37
5.6.230.0070.08320.62
5.6.220.0100.04020.73
5.6.210.0130.07020.67
5.6.200.0030.08720.96
5.6.190.0070.06021.13
5.6.180.0100.06021.00
5.6.170.0130.07321.05
5.6.160.0170.07021.01
5.6.150.0100.05021.06
5.6.140.0100.04020.94
5.6.130.0100.03720.95
5.6.120.0130.07320.95
5.6.110.0000.06720.95
5.6.100.0100.06721.02
5.6.90.0070.04321.15
5.6.80.0030.06020.32
5.6.70.0100.07720.47
5.6.60.0000.06020.50
5.6.50.0070.07720.37
5.6.40.0030.07720.49
5.6.30.0130.04020.25
5.6.20.0170.06720.43
5.6.10.0000.04720.37
5.6.00.0070.04320.31
5.5.370.0130.07020.36
5.5.360.0130.04720.44
5.5.350.0100.07320.39
5.5.340.0230.06720.79
5.5.330.0170.07020.86
5.5.320.0100.04020.89
5.5.310.0070.07720.91
5.5.300.0030.07020.86
5.5.290.0000.04720.83
5.5.280.0030.08720.85
5.5.270.0230.04320.87
5.5.260.0230.06720.89
5.5.250.0030.07020.71
5.5.240.0070.04020.29
5.5.230.0100.07720.30
5.5.220.0030.08020.27
5.5.210.0100.05320.13
5.5.200.0100.03719.99
5.5.190.0100.06320.14
5.5.180.0030.04720.25
5.5.160.0130.07020.27
5.5.150.0030.08020.23
5.5.140.0130.05320.21
5.5.130.0070.07320.24
5.5.120.0100.07720.17
5.5.110.0070.07720.07
5.5.100.0130.07320.08
5.5.90.0170.06719.94
5.5.80.0100.06720.12
5.5.70.0170.06720.10
5.5.60.0030.08320.11
5.5.50.0100.06720.13
5.5.40.0100.05020.04
5.5.30.0100.05320.03
5.5.20.0170.05720.04
5.5.10.0030.04720.00
5.5.00.0200.06320.04
5.4.450.0100.07019.45
5.4.440.0100.07019.23
5.4.430.0170.06719.42
5.4.420.0270.06019.13
5.4.410.0070.04319.01
5.4.400.0000.04318.79
5.4.390.0130.07019.04
5.4.380.0070.07718.95
5.4.370.0000.05019.03
5.4.360.0030.04319.07
5.4.350.0070.04719.05
5.4.340.0030.06019.09
5.4.320.0100.07719.03
5.4.310.0100.07318.98
5.4.300.0100.04018.96
5.4.290.0030.05319.04
5.4.280.0030.05018.98
5.4.270.0070.06318.80
5.4.260.0070.07018.97
5.4.250.0170.06719.02
5.4.240.0070.07718.94
5.4.230.0200.06718.80
5.4.220.0100.07019.06
5.4.210.0070.06019.09
5.4.200.0000.04319.22
5.4.190.0170.07019.09
5.4.180.0030.04719.10
5.4.170.0070.07318.80
5.4.160.0100.05019.05
5.4.150.0030.07719.12
5.4.140.0070.04316.38
5.4.130.0170.06316.41
5.4.120.0030.07316.32
5.4.110.0070.06716.47
5.4.100.0030.07016.47
5.4.90.0030.04316.36
5.4.80.0030.05316.33
5.4.70.0100.05016.47
5.4.60.0000.07016.34
5.4.50.0070.05316.25
5.4.40.0030.05316.29
5.4.30.0130.07016.23
5.4.20.0130.04316.23
5.4.10.0100.07016.20
5.4.00.0100.04315.81
5.3.290.0070.08314.65
5.3.280.0000.06714.54
5.3.270.0030.04014.51
5.3.260.0070.05314.59
5.3.250.0100.07314.52
5.3.240.0000.04314.51
5.3.230.0030.05014.60
5.3.220.0100.06314.50
5.3.210.0170.04014.57
5.3.200.0070.06714.54
5.3.190.0100.04014.55
5.3.180.0030.08014.50
5.3.170.0030.08014.51
5.3.160.0070.06014.52
5.3.150.0030.06314.47
5.3.140.0070.07314.54
5.3.130.0100.04314.50
5.3.120.0100.07014.41
5.3.110.0030.07714.54
5.3.100.0070.04713.91
5.3.90.0030.05013.99
5.3.80.0100.04714.00
5.3.70.0130.05014.00
5.3.60.0030.04013.91
5.3.50.0070.05713.90
5.3.40.0070.07713.89
5.3.30.0100.07313.91
5.3.20.0100.08313.59
5.3.10.0030.04713.43
5.3.00.0070.07313.39
5.2.170.0000.06711.07
5.2.160.0030.06311.05
5.2.150.0070.05711.27
5.2.140.0100.06010.99
5.2.130.0070.05011.14
5.2.120.0070.06011.11
5.2.110.0100.04711.18
5.2.100.0030.06711.16
5.2.90.0000.06310.98
5.2.80.0030.06011.18
5.2.70.0070.06010.99
5.2.60.0030.06311.11
5.2.50.0070.06010.88
5.2.40.0030.06310.85
5.2.30.0130.05711.06
5.2.20.0030.04711.06
5.2.10.0000.03710.95
5.2.00.0030.04710.72
5.1.60.0030.04710.00
5.1.50.0030.0509.83
5.1.40.0030.04710.02
5.1.30.0070.05710.39
5.1.20.0100.03710.39
5.1.10.0000.03010.07
5.1.00.0030.0539.95
5.0.50.0000.0478.61
5.0.40.0030.0478.43
5.0.30.0000.0678.21
5.0.20.0030.0338.21
5.0.10.0030.0378.24
5.0.00.0070.0508.25
4.4.90.0000.0337.42
4.4.80.0000.0407.42
4.4.70.0030.0237.42
4.4.60.0130.0077.42
4.4.50.0030.0177.42
4.4.40.0030.0307.42
4.4.30.0070.0207.42
4.4.20.0000.0207.42
4.4.10.0070.0307.42
4.4.00.0070.0407.42
4.3.110.0030.0337.42
4.3.100.0000.0277.42
4.3.90.0030.0207.42
4.3.80.0000.0437.42
4.3.70.0070.0177.42
4.3.60.0070.0307.42
4.3.50.0030.0337.42
4.3.40.0070.0377.42
4.3.30.0000.0337.42
4.3.20.0070.0307.42
4.3.10.0000.0307.42
4.3.00.0000.0337.42