3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('now'); $firstOfMonth = $date->modify('1st day of current month')->format(DATE_ISO8601); $lastOfMonth = $date->modify('end of month')->format(DATE_ISO8601); var_dump(array($firstOfMonth, $lastOfMonth));

Here you find the average performance (time & memory) of each version. A greyed 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.2.00.0030.01019.59
7.1.100.0070.00718.30
7.1.70.0030.00917.29
7.1.60.0030.02219.40
7.1.50.0070.01317.05
7.1.00.0130.06322.36
7.0.200.0030.00716.60
7.0.140.0100.06721.99
7.0.120.0000.07322.09
7.0.60.0070.08319.95
7.0.50.0000.04317.81
7.0.40.0070.04017.66
7.0.30.0030.04017.75
7.0.20.0100.03317.72
7.0.10.0070.03717.68
7.0.00.0030.04717.75
5.6.280.0030.07320.97
5.6.210.0000.08020.73
5.6.200.0000.04318.19
5.6.190.0000.04318.22
5.6.180.0100.03318.15
5.6.170.0030.04018.07
5.6.160.0030.04018.21
5.6.150.0070.04018.14
5.6.140.0100.03318.07
5.6.130.0070.05718.12
5.6.120.0070.03718.22
5.6.110.0030.06318.15
5.6.100.0030.08718.16
5.6.90.0000.07318.14
5.6.80.0100.07017.59
5.6.70.0070.06317.60
5.6.60.0170.07717.59
5.6.50.0030.08317.61
5.6.40.0070.06017.50
5.6.30.0070.03717.45
5.6.20.0170.07017.47
5.6.10.0030.08317.62
5.6.00.0030.06717.56
5.5.350.0330.06720.42
5.5.340.0030.04018.02
5.5.330.0030.05717.92
5.5.320.0070.03318.02
5.5.310.0000.04317.91
5.5.300.0070.03318.01
5.5.290.0030.04317.99
5.5.280.0030.04017.98
5.5.270.0030.04017.99
5.5.260.0030.07717.88
5.5.250.0000.08717.78
5.5.240.0170.06017.33
5.5.230.0100.07717.39
5.5.220.0130.07317.33
5.5.210.0200.06317.30
5.5.200.0100.07017.36
5.5.190.0070.07017.36
5.5.180.0030.07717.25
5.5.160.0070.05717.33
5.5.150.0070.08017.26
5.5.140.0100.07317.23
5.5.130.0100.04317.23
5.5.120.0000.04717.33
5.5.110.0070.07717.21
5.5.100.0070.05017.28
5.5.90.0030.06317.16
5.5.80.0070.06717.20
5.5.70.0070.03717.11
5.5.60.0030.06017.26
5.5.50.0070.06017.20
5.5.40.0000.04717.25
5.5.30.0030.05017.16
5.5.20.0070.07717.25
5.5.10.0030.07717.19
5.5.00.0030.04317.17
5.4.450.0000.05319.32
5.4.440.0030.05019.38
5.4.430.0000.08019.46
5.4.420.0070.04019.37
5.4.410.0030.06719.31
5.4.400.0000.07718.98
5.4.390.0070.08019.01
5.4.380.0100.07318.98
5.4.370.0070.06719.27
5.4.360.0000.05719.10
5.4.350.0100.03319.03
5.4.340.0070.05719.12
5.4.320.0070.04719.09
5.4.310.0030.04018.89
5.4.300.0170.06719.04
5.4.290.0000.04718.95
5.4.280.0070.05719.09
5.4.270.0070.03719.02
5.4.260.0070.07319.12
5.4.250.0130.07319.02
5.4.240.0000.05019.02
5.4.230.0030.03719.13
5.4.220.0030.07019.09
5.4.210.0030.07719.04
5.4.200.0170.06019.00
5.4.190.0100.04319.09
5.4.180.0070.03719.00
5.4.170.0100.05719.08
5.4.160.0100.03319.02
5.4.150.0170.05719.07
5.4.140.0100.06716.59
5.4.130.0030.07716.48
5.4.120.0030.04316.47
5.4.110.0030.07716.43
5.4.100.0100.05016.45
5.4.90.0130.04716.43
5.4.80.0000.06016.48
5.4.70.0130.06016.48
5.4.60.0100.06316.42
5.4.50.0100.05016.32
5.4.40.0030.07316.46
5.4.30.0100.05316.38
5.4.20.0100.07316.44
5.4.10.0100.04716.26
5.4.00.0070.03315.70
5.3.290.0070.04714.72
5.3.280.0070.03714.63
5.3.270.0030.08714.60
5.3.260.0100.03314.59
5.3.250.0070.07014.70
5.3.240.0170.06314.56
5.3.230.0070.06314.55
5.3.220.0030.06014.58
5.3.210.0070.08014.55
5.3.200.0070.07714.60
5.3.190.0130.07014.61
5.3.180.0000.08314.66
5.3.170.0000.04314.52
5.3.160.0000.08314.77
5.3.150.0100.06714.67
5.3.140.0030.06314.76
5.3.130.0000.04714.53
5.3.120.0030.07714.64
5.3.110.0000.05014.60
5.3.100.0170.05714.08
5.3.90.0000.04014.05
5.3.80.0100.06714.08
5.3.70.0030.06314.10
5.3.60.0170.06713.98
5.3.50.0100.07313.99
5.3.40.0030.04014.15
5.3.30.0070.03713.94
5.3.20.0030.07013.90
5.3.10.0030.04313.64
5.3.00.0070.07013.70
5.2.170.0070.06010.96
5.2.160.0000.03310.92
5.2.150.0000.04311.13
5.2.140.0030.03011.13
5.2.130.0000.04010.88
5.2.120.0070.04711.04
5.2.110.0030.06010.93
5.2.100.0030.05010.88
5.2.90.0000.06311.07
5.2.80.0030.06311.06
5.2.70.0070.06311.08
5.2.60.0030.06011.05
5.2.50.0030.06311.05
5.2.40.0100.05011.00
5.2.30.0100.05310.91
5.2.20.0000.04310.79
5.2.10.0070.06310.78
5.2.00.0070.06010.78
5.1.60.0070.02010.00
5.1.50.0030.05310.04
5.1.40.0030.0439.92
5.1.30.0000.04010.27
5.1.20.0070.03010.29
5.1.10.0070.05710.05
5.1.00.0070.05310.04
5.0.50.0070.0378.71
5.0.40.0000.0378.71
5.0.30.0030.0678.71
5.0.20.0070.0408.71
5.0.10.0000.0308.71
5.0.00.0070.0638.71
4.4.90.0000.0278.71
4.4.80.0030.0378.71
4.4.70.0000.0178.71
4.4.60.0000.0178.71
4.4.50.0000.0208.71
4.4.40.0030.0238.71
4.4.30.0000.0178.71
4.4.20.0000.0208.71
4.4.10.0070.0308.71
4.4.00.0000.0408.71
4.3.110.0030.0238.71
4.3.100.0070.0338.71
4.3.90.0030.0278.71
4.3.80.0030.0538.71
4.3.70.0070.0338.71
4.3.60.0070.0308.71
4.3.50.0030.0278.71
4.3.40.0000.0378.71
4.3.30.0030.0278.71
4.3.20.0000.0208.71
4.3.10.0000.0338.71
4.3.00.0030.0238.71