3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(DateTimeImmutable::createFromMutable(new DateTime('midnight'))); var_dump(DateTimeImmutable::createFromMutable(new DateTimeImmutable('midnight')));
based on sHrQ2

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.10.0090.01216.21
7.3.00.0160.00316.43
7.2.130.0160.00616.58
7.2.120.0100.00716.39
7.2.110.0160.00816.37
7.2.100.0130.00616.68
7.2.90.0120.00616.62
7.2.80.0110.00416.50
7.2.70.0130.00316.78
7.2.60.0060.00816.78
7.2.50.0120.00516.48
7.2.40.0140.00716.39
7.2.30.0060.01016.68
7.2.20.0200.00316.61
7.2.10.0090.00916.71
7.2.00.0030.01317.98
7.1.250.0090.00615.43
7.1.240.0070.01015.61
7.1.230.0100.00715.62
7.1.220.0100.00715.72
7.1.210.0130.00715.78
7.1.200.0070.00715.67
7.1.190.0090.00615.65
7.1.180.0080.00815.62
7.1.170.0060.01215.77
7.1.160.0090.00915.23
7.1.150.0040.01215.61
7.1.140.0120.00415.55
7.1.130.0100.00715.59
7.1.120.0100.00715.52
7.1.110.0130.00015.44
7.1.100.0070.00616.69
7.1.90.0160.00815.42
7.1.80.0130.00315.34
7.1.70.0060.00516.53
7.1.60.0080.01317.90
7.1.50.0120.00725.24
7.1.40.0090.00615.82
7.1.30.0070.00715.92
7.1.20.0090.00615.72
7.1.10.0090.00915.88
7.1.00.0080.04019.00
7.0.330.0160.00315.32
7.0.320.0180.00315.21
7.0.310.0160.00314.95
7.0.300.0110.00315.29
7.0.290.0070.01015.47
7.0.280.0070.00715.25
7.0.270.0070.01015.20
7.0.260.0110.00715.12
7.0.250.0100.01015.21
7.0.240.0090.00915.05
7.0.230.0030.01215.49
7.0.220.0100.00715.46
7.0.210.0080.00815.46
7.0.200.0070.00316.10
7.0.190.0060.00615.45
7.0.180.0080.00815.55
7.0.170.0090.00915.20
7.0.160.0160.00315.06
7.0.150.0030.01315.21
7.0.140.0070.01015.33
7.0.130.0130.00415.24
7.0.120.0140.00615.32
7.0.110.0110.00815.55
7.0.100.0130.00315.09
7.0.90.0110.00715.05
7.0.80.0130.00915.08
7.0.70.0100.00715.32
7.0.60.0150.03717.40
7.0.50.0100.04016.64
7.0.40.0080.02316.65
7.0.30.0180.02516.74
7.0.20.0150.02616.49
7.0.10.0080.03916.57
7.0.00.0070.04616.53
5.6.380.0000.01714.57
5.6.370.0080.00514.24
5.6.360.0040.00814.26
5.6.350.0030.00613.98
5.6.340.0110.00413.72
5.6.330.0080.00814.31
5.6.320.0150.00013.95
5.6.310.0110.00514.35
5.6.300.0100.01014.26
5.6.290.0040.01113.84
5.6.280.0040.03217.64
5.6.270.0090.00614.28
5.6.260.0090.00914.14
5.6.250.0070.01113.89
5.6.240.0100.01013.97
5.6.230.0030.01013.93
5.6.220.0110.00314.30
5.6.210.0140.02117.45
5.6.200.0120.01716.12
5.6.190.0080.04517.38
5.6.180.0110.02617.54
5.6.170.0190.03917.31
5.6.160.0060.04717.28
5.6.150.0080.04416.20
5.6.140.0080.02716.10
5.6.130.0030.04816.04
5.6.120.0110.04517.65
5.6.110.0110.03317.63
5.6.100.0130.03217.54
5.6.90.0020.04917.66
5.6.80.0070.04417.15
5.6.70.0090.00613.82
5.6.60.0150.00014.16
5.6.50.0060.00914.24
5.6.40.0040.01214.47
5.6.30.0060.01314.13
5.6.20.0070.00714.05
5.6.10.0100.01014.05
5.6.00.0040.01914.22
5.5.380.0030.00710.71
5.5.370.0000.00910.71
5.5.360.0030.00610.96
5.5.350.0010.02115.61
5.5.340.0040.03214.29
5.5.330.0070.04715.63
5.5.320.0670.03715.60
5.5.310.0100.03415.47
5.5.300.0050.02914.33
5.5.290.0120.02714.29
5.5.280.0070.03215.79
5.5.270.0120.03715.72
5.5.260.0050.02415.92
5.5.250.0080.04215.58
5.5.240.0050.02215.43
5.5.230.0030.00710.84
5.5.220.0000.01310.71
5.5.210.0040.00810.95
5.5.200.0040.00410.71
5.5.190.0000.01210.71
5.5.180.0110.00010.71
5.5.170.0040.00710.85
5.5.160.0110.00410.71
5.5.150.0070.00710.71
5.5.140.0060.00610.71
5.5.130.0070.00710.73
5.5.120.0060.00610.86
5.5.110.0130.00310.71
5.5.100.0040.00810.71
5.5.90.0040.00810.71
5.5.80.0050.01110.71
5.5.70.0060.00310.71
5.5.60.0050.00510.81
5.5.50.0040.00810.74
5.5.40.0000.01410.71
5.5.30.0090.00310.71
5.5.20.0080.00410.71
5.5.10.0120.00610.91
5.5.00.0090.00610.71
5.4.450.0390.03515.06
5.4.440.0500.02815.13
5.4.430.0460.03015.21
5.4.420.0470.03315.13
5.4.410.0420.03315.11
5.4.400.0340.03314.96
5.4.390.0440.02614.96
5.4.380.0370.03014.94
5.4.370.0350.02914.74
5.4.360.0340.03114.85
5.4.350.0360.02815.11
5.4.340.0350.03015.04
5.4.330.0070.00710.83
5.4.320.0300.03114.93
5.4.310.0350.03014.85
5.4.300.0340.03015.01
5.4.290.0380.02514.90
5.4.280.0390.03314.74
5.4.270.0360.03314.76
5.4.260.0360.02614.82
5.4.250.0320.03014.85
5.4.240.0370.02714.95
5.4.230.0350.02814.93
5.4.220.0280.03314.96
5.4.210.0380.02514.76
5.4.200.0320.03114.96
5.4.190.0330.03014.80
5.4.180.0380.03014.97
5.4.170.0070.02914.74
5.4.160.0070.02915.00
5.4.150.0120.02514.75
5.4.140.0220.03313.61
5.4.130.0430.02313.67
5.4.120.0450.02613.54
5.4.110.0410.03013.74
5.4.100.0370.03013.57
5.4.90.0430.02513.58
5.4.80.0370.02813.44
5.4.70.0120.03713.56
5.4.60.0180.03213.55
5.4.50.0100.03213.45
5.4.40.0200.03013.59
5.4.30.0080.03513.63
5.4.20.0170.03913.45
5.4.10.0240.02713.56
5.4.00.0040.00410.71
5.3.290.0270.03714.52
5.3.280.0370.04314.44
5.3.270.0200.03714.55
5.3.260.0330.04714.51
5.3.250.0300.03314.47
5.3.240.0270.03314.61
5.3.230.0230.04014.54
5.3.220.0230.03714.42
5.3.210.0230.04014.40
5.3.200.0430.04714.55
5.3.190.0270.07014.42
5.3.180.0270.07014.42