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 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.2.100.1040.01014.30
7.2.90.0560.00414.63
7.2.80.0090.00914.73
7.2.70.0780.00714.62
7.2.60.0810.00814.92
7.2.50.1120.00315.00
7.2.40.1010.01014.78
7.2.30.0940.01614.75
7.2.20.0900.01514.72
7.2.10.1080.00714.85
7.2.00.1160.00714.96
7.1.220.0180.00413.61
7.1.210.0270.00013.63
7.1.200.0920.01313.57
7.1.190.1050.01313.38
7.1.180.1270.00013.77
7.1.170.0990.00313.52
7.1.160.1150.00013.66
7.1.150.1060.00713.66
7.1.140.1340.00313.48
7.1.130.1100.00613.48
7.1.120.1050.00613.39
7.1.110.0320.00813.71
7.1.100.1080.00313.58
7.1.90.1470.00313.83
7.1.80.0080.01214.05
7.1.70.1100.00713.63
7.1.60.1690.00331.93
7.1.50.1750.01032.02
7.1.40.0280.00731.64
7.1.30.0360.00031.62
7.1.20.1440.00731.64
7.1.10.0480.00913.72
7.1.00.0100.00713.65
7.0.310.0500.00613.12
7.0.300.0070.00713.23
7.0.290.1140.00613.26
7.0.280.1030.00413.27
7.0.270.1070.00413.28
7.0.260.1280.00013.13
7.0.250.1170.00413.29
7.0.240.1040.00713.41
7.0.230.0410.00313.35
7.0.220.1500.00713.40
7.0.210.1200.00413.58
7.0.200.0150.00413.52
7.0.190.1530.00013.60
7.0.180.0340.00313.82
7.0.170.1230.00813.43
7.0.160.1360.00013.89
7.0.150.0990.00613.47
7.0.140.0090.00613.69
7.0.130.1390.00613.77
7.0.120.1580.00013.64
7.0.110.1370.00713.39
7.0.100.1510.00313.57
7.0.90.1790.00313.60
7.0.80.1230.00313.58
7.0.70.1240.00713.34
7.0.60.0190.00613.71
7.0.50.1290.00313.72
7.0.40.1590.00313.45
7.0.30.0240.00913.55
7.0.20.1160.00613.63
7.0.10.1210.00313.62
7.0.00.1130.00313.56
hhvm-3.22.00.1190.15290.85
hhvm-3.21.30.0620.18591.02
hhvm-3.21.00.1040.21790.74
hhvm-3.20.20.1010.18691.09
hhvm-3.19.20.0940.15790.20
hhvm-3.18.50.0950.13489.30
hhvm-3.18.40.0690.17888.98
hhvm-3.17.30.0910.15188.22
hhvm-3.15.40.0910.12286.06
hhvm-3.13.20.0940.17697.19
hhvm-3.12.140.0860.16596.14
hhvm-3.11.10.0770.17487.71
hhvm-3.10.10.0640.16684.63
5.6.380.0050.00813.97
5.6.370.0080.00613.87
5.6.360.0090.00614.30
5.6.350.0140.00013.84
5.6.340.0070.00714.08
5.6.330.0130.00714.13
5.6.320.0050.00714.50
5.6.310.0080.00514.54
5.6.300.0060.00614.20
5.6.290.0050.00814.43
5.6.280.0030.00914.25
5.6.270.0040.00814.23
5.6.260.0100.00314.54
5.6.250.0040.01114.23
5.6.240.0050.00814.33
5.6.230.0080.00414.32
5.6.220.0090.00514.26
5.6.210.0160.00014.29
5.6.200.0090.00614.21
5.6.190.0100.00514.42
5.6.180.0110.00414.44
5.6.170.0130.00314.06
5.6.160.0060.00814.26
5.6.150.0040.01114.43
5.6.140.0050.00814.18
5.6.130.0060.00614.31
5.6.120.0110.00814.48
5.6.110.0170.00014.23
5.6.100.0030.01214.26
5.6.90.0000.01514.25
5.6.80.0000.01514.37
5.6.70.0140.00014.41
5.6.60.0110.00214.28
5.6.50.0100.00714.33
5.6.40.0130.00314.15
5.6.30.0080.00514.20
5.6.20.0050.00814.40
5.6.10.0100.00514.18
5.6.00.0040.01214.25
5.5.380.0000.00911.73
5.5.370.0090.00411.73
5.5.360.0040.00511.73
5.5.350.0040.01111.73
5.5.340.0050.00511.73
5.5.330.0120.00011.73
5.5.320.0000.01111.73
5.5.310.0040.00811.73
5.5.300.0030.00711.73
5.5.290.0000.01011.73
5.5.280.0110.00011.73
5.5.270.0050.01011.73
5.5.260.0080.00811.73
5.5.250.0060.00611.73
5.5.240.0070.00311.73
5.5.230.0040.00711.73
5.5.220.0070.00411.73
5.5.210.0050.00511.73
5.5.200.0030.00611.73
5.5.190.0100.00011.73
5.5.180.0090.00211.73
5.5.170.0080.00813.92
5.5.160.0040.00711.73
5.5.150.0130.00011.73
5.5.140.0070.00411.73
5.5.130.0090.00911.73
5.5.120.0110.00211.73
5.5.110.0190.00711.73
5.5.100.0000.01511.73
5.5.90.0080.00611.73
5.5.80.0080.00411.73
5.5.70.0110.00411.73
5.5.60.0120.00011.73
5.5.50.0060.00611.73
5.5.40.0060.00611.73
5.5.30.0050.00811.73
5.5.20.0030.01011.73
5.5.10.0110.00011.73
5.5.00.0130.00311.73
5.4.450.0130.00411.73
5.4.440.0070.00711.73
5.4.430.0120.00311.73
5.4.420.0060.00911.73
5.4.410.0070.00711.73
5.4.400.0030.00811.73
5.4.390.0090.00311.73
5.4.380.0090.00311.73
5.4.370.0040.00711.73
5.4.360.0000.01211.73
5.4.350.0090.00311.73
5.4.340.0060.00611.73
5.4.330.0100.00411.73
5.4.320.0030.00911.73
5.4.310.0100.00311.73
5.4.300.0170.00011.73
5.4.290.0080.00511.73
5.4.280.0090.00311.73
5.4.270.0040.00711.73
5.4.260.0150.00011.73
5.4.250.0110.00411.73
5.4.240.0140.00011.73
5.4.230.0100.00511.73
5.4.220.0000.01211.73
5.4.210.0040.00811.73
5.4.200.0000.01211.73
5.4.190.0060.00611.73
5.4.180.0060.00611.73
5.4.170.0070.00711.73
5.4.160.0180.00311.73
5.4.150.0050.01111.73
5.4.140.0120.00011.73
5.4.130.0100.00211.73
5.4.120.0120.00011.73
5.4.110.0000.01311.73
5.4.100.0040.00811.73
5.4.90.0080.00411.73
5.4.80.0080.00411.73
5.4.70.0080.00411.73
5.4.60.0130.00011.73
5.4.50.0070.00511.73
5.4.40.0000.01111.73
5.4.30.0060.00611.73
5.4.20.0050.00511.73
5.4.10.0040.00811.73
5.4.00.0120.00011.73
5.3.290.0050.00911.73
5.3.280.0000.01411.73
5.3.270.0060.00611.73
5.3.260.0100.00011.73
5.3.250.0070.00411.73
5.3.240.0070.00311.73
5.3.230.0030.00711.73
5.3.220.0050.00511.73
5.3.210.0070.00411.73
5.3.200.0110.00011.73
5.3.190.0050.00511.73
5.3.180.0050.00511.73
5.3.170.0090.00311.73
5.3.160.0050.00511.73
5.3.150.0100.00011.73
5.3.140.0100.00011.73
5.3.130.0000.01011.73
5.3.120.0100.00011.73
5.3.110.0050.00511.73
5.3.100.0000.01111.73
5.3.90.0040.00811.73
5.3.80.0070.00411.73
5.3.70.0050.00511.73
5.3.60.0050.00511.73
5.3.50.0100.00011.73
5.3.40.0100.00011.73
5.3.30.0050.00511.73
5.3.20.0100.00011.73
5.3.10.0000.01011.73
5.3.00.0060.00611.73
5.2.170.0080.00011.73
5.2.160.0080.00011.73
5.2.150.0090.00011.73
5.2.140.0040.00411.73
5.2.130.0090.00011.73
5.2.120.0070.00211.73
5.2.110.0070.00211.73
5.2.100.0060.00311.73
5.2.90.0100.00011.73
5.2.80.0050.00511.73
5.2.70.0070.00211.73
5.2.60.0090.00011.73
5.2.50.0070.00511.73
5.2.40.0090.00311.73
5.2.30.0050.00511.73
5.2.20.0090.00011.73
5.2.10.0040.00411.73
5.2.00.0080.00011.73
5.1.60.0080.00011.73
5.1.50.0080.00011.73
5.1.40.0040.00411.73
5.1.30.0080.00011.73
5.1.20.0000.00711.73
5.1.10.0050.00311.73
5.1.00.0050.00511.73
5.0.50.0070.00011.73
5.0.40.0030.00311.73
5.0.30.0070.00011.73
5.0.20.0070.00011.73
5.0.10.0060.00011.73
5.0.00.0060.00011.73
4.4.90.0000.00611.73
4.4.80.0030.00311.73
4.4.70.0050.00011.73
4.4.60.0000.00511.73
4.4.50.0020.00211.73
4.4.40.0000.00611.73
4.4.30.0000.00511.73
4.4.20.0030.00311.73
4.4.10.0030.00211.73
4.4.00.0000.00511.73
4.3.110.0000.00611.73
4.3.100.0000.00611.73
4.3.90.0030.00311.73
4.3.80.0050.00011.73
4.3.70.0050.00011.73
4.3.60.0000.00611.73
4.3.50.0000.00511.73
4.3.40.0050.00011.73
4.3.30.0030.00311.73
4.3.20.0030.00311.73
4.3.10.0030.00211.73
4.3.00.0000.00411.73