3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExtendsDateTime extends DateTime { public function __construct($datetime, $tz) { var_dump($datetime); } public static function createFromFormat($format, $datetime, $timezone = null) { return parent::createFromFormat($format, $datetime); } } $date = ExtendsDateTime::createFromFormat('Y-m-d', '2014-02-14'); var_dump($date instanceof ExtendsDateTime);

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.0.00.0060.01216.67
7.4.120.0130.00416.63
7.4.110.0060.01216.70
7.4.100.0030.01416.64
7.4.90.0070.01016.73
7.4.80.0090.00916.50
7.4.70.0030.01316.30
7.4.60.0170.00016.74
7.4.50.0110.01116.63
7.4.40.0140.00916.66
7.4.30.0100.01216.77
7.4.20.0100.00716.83
7.4.10.0120.00316.43
7.4.00.0060.01216.66
7.3.230.0120.00416.52
7.3.210.0100.00716.38
7.3.200.0090.00916.47
7.3.190.0070.01016.49
7.3.180.0080.00816.80
7.3.170.0130.01016.45
7.3.160.0070.01116.52
7.3.150.0100.00716.43
7.3.140.0030.01316.39
7.3.130.0060.01116.37
7.3.120.0080.00816.64
7.3.110.0070.01016.27
7.3.100.0160.00016.47
7.3.90.0100.00716.63
7.3.80.0120.00616.67
7.3.70.0090.00816.17
7.3.60.0040.01216.48
7.3.50.0030.01316.29
7.3.40.0110.00516.68
7.3.30.0140.00316.34
7.3.20.0070.01116.40
7.3.10.0070.01016.27
7.3.00.0230.00316.61
7.2.330.0000.01716.68
7.2.320.0100.00716.68
7.2.310.0210.00316.59
7.2.300.0070.01716.81
7.2.290.0030.01416.81
7.2.280.0140.00416.41
7.2.270.0130.00316.98
7.2.260.0100.00716.61
7.2.250.0150.00316.82
7.2.240.0080.00816.83
7.2.230.0090.00816.91
7.2.220.0060.01016.42
7.2.210.0090.01316.52
7.2.200.0040.01216.63
7.2.190.0100.00716.72
7.2.180.0120.00616.67
7.2.170.0100.00816.57
7.2.160.0050.01316.73
7.2.150.0090.01116.51
7.2.140.0160.00516.71
7.2.130.0060.01216.71
7.2.120.0030.01516.48
7.2.110.0040.01616.60
7.2.100.0130.00916.74
7.2.90.0180.00616.64
7.2.80.0170.00716.69
7.2.70.0100.01616.81
7.2.60.0190.00716.75
7.2.50.0190.00716.67
7.2.40.0100.01116.73
7.2.30.0120.00616.71
7.2.20.0160.00716.66
7.2.10.0090.01416.45
7.2.00.0140.00316.74