3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('2018-12-31'); echo $date->format('Y/W');

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.120.1790.00914.68
7.2.110.1940.01114.63
7.2.100.0830.00914.64
7.2.90.0890.00614.74
7.2.80.0780.00514.67
7.2.70.1030.00814.96
7.2.60.1020.01114.98
7.2.50.0740.00915.03
7.2.40.0620.00714.81
7.2.30.0400.00914.91
7.2.20.0670.00614.92
7.2.10.0960.00814.86
7.2.00.0820.00714.97
7.1.240.3350.01713.50
7.1.230.3110.01013.71
7.1.220.2790.01313.86
7.1.210.2810.00713.68
7.1.200.2520.01313.93
7.1.190.2450.00713.74
7.1.180.2320.00013.55
7.1.170.1370.00713.93
7.1.160.1160.00414.00
7.1.150.1470.00713.80
7.1.140.1390.01013.95
7.1.130.1270.00713.50
7.1.120.1360.00713.73
7.1.110.1060.01313.86
7.1.100.1610.00013.79
7.1.90.1000.00713.75
7.1.80.1000.01013.94
7.1.70.0820.01013.98
7.1.60.0810.00914.14
7.1.50.0820.00313.96
7.1.40.0640.01014.08
7.1.30.0660.00713.77
7.1.20.0780.00313.90
7.1.10.0510.00713.81
7.1.00.0480.00913.87
7.0.320.1720.01113.31
7.0.310.2870.01013.32
7.0.300.2330.01013.54
7.0.290.2000.01013.46
7.0.280.1890.01013.43
7.0.270.1390.00713.53
7.0.260.1850.00613.27
7.0.250.1260.00713.65
7.0.240.0900.00713.76
7.0.230.1000.00713.73
7.0.220.0820.00313.60
7.0.210.0460.01313.49
7.0.200.0780.01113.50
7.0.190.0780.00713.57
7.0.180.0580.00613.66
7.0.170.0660.00413.48
7.0.160.0650.00913.62
7.0.150.0620.00013.75
7.0.140.0410.00913.68
7.0.130.0270.00913.47
7.0.120.0600.00313.31
7.0.110.0530.00913.59
7.0.100.0490.00913.71
7.0.90.0430.00413.63
7.0.80.0410.01213.69
7.0.70.0510.00913.61
7.0.60.0430.01113.34
7.0.50.0440.01213.68
7.0.40.0310.01413.74
7.0.30.0430.00513.48
7.0.20.0490.00613.69
7.0.10.0530.00413.69
7.0.00.0550.00413.48
hhvm-3.22.00.1710.23190.08
hhvm-3.21.30.1380.21390.24
hhvm-3.21.00.1260.18290.59
hhvm-3.20.20.1200.18390.00
hhvm-3.19.20.1370.20289.76
hhvm-3.18.50.1280.19088.07
hhvm-3.18.40.0920.18888.94
hhvm-3.17.30.0850.19487.36
hhvm-3.15.40.1020.16085.14
hhvm-3.13.20.1090.19596.34
hhvm-3.12.140.1240.19595.53
hhvm-3.11.10.1390.15487.43
hhvm-3.10.10.0930.18684.57
5.6.380.0080.01014.39
5.6.370.0130.00914.22
5.6.360.0120.00914.54
5.6.350.0150.00514.56
5.6.340.0200.00014.02
5.6.330.0140.00714.51
5.6.320.0160.00714.48
5.6.310.0100.01014.44
5.6.300.0250.00014.40
5.6.290.0150.00614.14
5.6.280.0140.00514.29
5.6.270.0140.00614.21
5.6.260.0120.00914.41
5.6.250.0140.00714.45
5.6.240.0150.00914.51
5.6.230.0090.01214.60
5.6.220.0160.00614.62
5.6.210.0150.00614.41
5.6.200.0190.00514.31
5.6.190.0140.00914.17
5.6.180.0110.01314.31
5.6.170.0160.00614.60
5.6.160.0210.00014.38
5.6.150.0100.01014.33
5.6.140.0080.01214.53
5.6.130.0180.00414.34
5.6.120.0120.01214.23
5.6.110.0090.01214.52
5.6.100.0120.00814.27
5.6.90.0130.01014.40
5.6.80.0000.02314.36
5.6.70.0160.00714.43
5.6.60.0130.01014.24
5.6.50.0070.01314.14
5.6.40.0190.00014.42
5.6.30.0090.01214.23
5.6.20.0060.01614.20
5.6.10.0130.00814.22
5.6.00.0170.00314.37
5.5.380.0050.01010.94
5.5.370.0110.00511.04
5.5.360.0150.00011.01
5.5.350.0100.00510.94
5.5.340.0050.01211.20
5.5.330.0070.00810.88
5.5.320.0130.00311.27
5.5.310.0060.01110.96
5.5.300.0060.00911.37
5.5.290.0110.00311.31
5.5.280.0150.00310.98
5.5.270.0050.01111.32
5.5.260.0070.00711.13
5.5.250.0130.00311.16
5.5.240.0080.00811.33
5.5.230.0170.00010.93
5.5.220.0120.00411.00
5.5.210.0050.01011.19
5.5.200.0130.00411.18
5.5.190.0150.00010.98
5.5.180.0060.00911.13
5.5.170.0070.01414.17
5.5.160.0040.01211.32
5.5.150.0150.00010.89
5.5.140.0060.00611.18
5.5.130.0060.00911.30
5.5.120.0130.00311.01
5.5.110.0120.00311.05
5.5.100.0090.00511.19
5.5.90.0090.00510.98
5.5.80.0080.00911.03
5.5.70.0120.00310.93
5.5.60.0110.00411.24
5.5.50.0000.01411.28
5.5.40.0090.00411.25
5.5.30.0080.00811.23
5.5.20.0130.00310.78
5.5.10.0080.00810.88
5.5.00.0120.00511.24
5.4.450.0080.00810.75
5.4.440.0000.01411.17
5.4.430.0090.00610.95
5.4.420.0110.00711.06
5.4.410.0110.00311.14
5.4.400.0060.00910.88
5.4.390.0090.00610.85
5.4.380.0130.00310.94
5.4.370.0110.00410.83
5.4.360.0110.00411.03
5.4.350.0070.00710.96
5.4.340.0070.00710.98
5.4.330.0140.00010.82
5.4.320.0080.00810.73
5.4.310.0080.00410.88
5.4.300.0170.00011.11
5.4.290.0100.00510.95
5.4.280.0100.00510.79
5.4.270.0080.00810.87
5.4.260.0120.00410.91
5.4.250.0090.00710.93
5.4.240.0130.00010.76
5.4.230.0100.00510.89
5.4.220.0070.00510.97
5.4.210.0090.00411.23
5.4.200.0100.00511.10
5.4.190.0050.01010.93
5.4.180.0080.00511.03
5.4.170.0080.00710.95
5.4.160.0100.00510.77
5.4.150.0110.00410.65
5.4.140.0050.00911.09
5.4.130.0110.00311.03
5.4.120.0060.00611.02
5.4.110.0200.00011.13
5.4.100.0040.01110.99
5.4.90.0100.00510.93
5.4.80.0070.00711.02
5.4.70.0060.00911.05
5.4.60.0080.00511.02
5.4.50.0100.00310.79
5.4.40.0070.00411.12
5.4.30.0110.00410.84
5.4.20.0090.00511.07
5.4.10.0000.01311.09
5.4.00.0120.00310.96
5.3.290.0040.00910.63
5.3.280.0130.00010.71
5.3.270.0120.00010.64
5.3.260.0120.00010.66
5.3.250.0130.00010.68
5.3.240.0120.00010.63
5.3.230.0090.00410.63
5.3.220.0130.00010.63
5.3.210.0090.00510.63
5.3.200.0060.00610.63
5.3.190.0090.00610.63
5.3.180.0110.00310.63
5.3.170.0040.00810.63
5.3.160.0040.00810.63
5.3.150.0080.00710.70
5.3.140.0100.00310.63
5.3.130.0040.00910.63
5.3.120.0110.00310.63
5.3.110.0090.00310.63
5.3.100.0090.00410.63
5.3.90.0080.00610.63
5.3.80.0100.00510.63
5.3.70.0030.01010.63
5.3.60.0030.01110.63
5.3.50.0120.00010.63
5.3.40.0110.00010.63
5.3.30.0100.00310.63
5.3.20.0080.00310.63
5.3.10.0110.00010.63
5.3.00.0080.00510.63
5.2.170.0070.00410.63
5.2.160.0000.01010.63
5.2.150.0070.00410.63
5.2.140.0000.01010.63
5.2.130.0070.00510.63
5.2.120.0110.00010.63
5.2.110.0080.00210.63
5.2.100.0070.00310.63
5.2.90.0000.01110.63
5.2.80.0050.00710.63
5.2.70.0040.00710.63
5.2.60.0030.00710.63
5.2.50.0110.00010.63
5.2.40.0050.00510.63
5.2.30.0070.00310.63
5.2.20.0040.00710.63
5.2.10.0090.00010.63
5.2.00.0050.00510.63
5.1.60.0030.00610.63
5.1.50.0030.00610.63
5.1.40.0040.00410.63
5.1.30.0080.00310.63
5.1.20.0080.00310.63
5.1.10.0110.00010.63
5.1.00.0070.00310.63
5.0.50.0070.00210.63
5.0.40.0070.00010.63
5.0.30.0030.00310.63
5.0.20.0040.00410.63
5.0.10.0050.00310.63
5.0.00.0050.00310.63
4.4.90.0040.00610.63
4.4.80.0000.00610.63
4.4.70.0000.00610.63
4.4.60.0000.00610.63
4.4.50.0030.00310.63
4.4.40.0070.00010.63
4.4.30.0070.00010.63
4.4.20.0040.00410.63
4.4.10.0050.00310.63
4.4.00.0070.00010.63
4.3.110.0070.00010.63
4.3.100.0030.00310.63
4.3.90.0030.00210.63
4.3.80.0000.00510.63
4.3.70.0050.00010.63
4.3.60.0060.00010.63
4.3.50.0030.00510.63
4.3.40.0040.00410.63
4.3.30.0060.00010.63
4.3.20.0000.00510.63
4.3.10.0020.00410.63
4.3.00.0030.00310.63