3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); $time = time(); //Qcodo version print_r(new Datetime(date('Y-m-d H:i:s', $time))); //v3 version print_r(new Datetime("@$time"));

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)
7.2.60.0000.01416.93
7.2.00.0000.01619.63
7.1.200.0080.00815.99
7.1.70.0000.00817.41
7.1.60.0040.00717.38
7.1.50.0100.00317.11
7.1.00.0030.07322.27
7.0.200.0000.00716.74
7.0.80.0500.06719.92
7.0.70.0130.04719.95
7.0.60.0500.07719.92
7.0.50.0070.08020.33
7.0.40.0070.08320.02
7.0.30.0100.07320.07
7.0.20.0170.07720.02
7.0.10.0070.08720.10
7.0.00.0030.08720.12
5.6.280.0030.07321.14
5.6.230.0070.05020.62
5.6.220.0030.05320.58
5.6.210.0130.07020.66
5.6.200.0100.07021.03
5.6.190.0100.08720.95
5.6.180.0100.08321.04
5.6.170.0100.08320.93
5.6.160.0130.04721.00
5.6.150.0030.05721.08
5.6.140.0030.09321.02
5.6.130.0130.07321.01
5.6.120.0100.08721.03
5.6.110.0130.08721.02
5.6.100.0100.08021.12
5.6.90.0070.05720.99
5.6.80.0030.05020.37
5.6.70.0030.04020.33
5.6.60.0100.04720.54
5.6.50.0100.03720.40
5.6.40.0000.04320.38
5.6.30.0030.05020.46
5.6.20.0070.03320.45
5.6.10.0030.04020.36
5.6.00.0030.03720.29
5.5.370.0030.05020.34
5.5.360.0100.03720.33
5.5.350.0100.07320.46
5.5.340.0130.07720.75
5.5.330.0070.05020.85
5.5.320.0030.07320.75
5.5.310.0100.08020.89
5.5.300.0130.04320.77
5.5.290.0000.05720.90
5.5.280.0100.04320.79
5.5.270.0070.08320.90
5.5.260.0130.04320.71
5.5.250.0030.04720.58
5.5.240.0000.08020.16
5.5.230.0100.03320.29
5.5.220.0070.05720.23
5.5.210.0070.03720.30
5.5.200.0000.04320.23
5.5.190.0030.04020.21
5.5.180.0030.04020.20
5.5.160.0070.04720.18
5.5.150.0000.06020.26
5.5.140.0000.04720.09
5.5.130.0030.04020.21
5.5.120.0030.04020.26
5.5.110.0000.04320.20
5.5.100.0170.05320.06
5.5.90.0130.04319.96
5.5.80.0030.04020.15
5.5.70.0030.04020.05
5.5.60.0000.05720.04
5.5.50.0000.04019.99
5.5.40.0100.03020.02
5.5.30.0100.05720.14
5.5.20.0000.04720.04
5.5.10.0070.06320.03
5.5.00.0070.03320.07

preferences:
38.02 ms | 403 KiB | 5 Q