3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime('2015-05-24 00:00:00'); $time = new \DateTime('0000-00-00 21:22:00'); $pickUpDateTime = new \DateTime(); $pickUpDateTime->setDate($date->format('Y'), $date->format('m'), $date->format('d')); $pickUpDateTime->setTime($time->format('H'), $time->format('i'), $time->format('s')); $now = new DateTime("now"); echo $now; $interval = date_diff($now, $pickUpDateTime); if ( $v = $interval->h >= 1 ) echo ($interval->d*24);

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.3.60.0060.00916.75
8.3.50.0070.01421.10
8.3.40.0070.01118.95
8.3.30.0080.00818.83
8.3.20.0000.00720.16
8.3.10.0040.00421.76
8.3.00.0030.00723.60
8.2.180.0060.00916.88
8.2.170.0140.00022.96
8.2.160.0100.00320.17
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0040.00420.87
8.2.120.0000.00726.35
8.2.110.0060.00321.11
8.2.100.0040.00718.04
8.2.90.0050.00319.30
8.2.80.0040.00417.97
8.2.70.0070.00318.00
8.2.60.0050.00318.05
8.2.50.0000.00818.09
8.2.40.0000.00822.35
8.2.30.0040.00419.51
8.2.20.0000.00817.95
8.2.10.0000.00718.09
8.2.00.0040.00418.13
8.1.280.0120.00925.92
8.1.270.0000.00921.95
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0150.00322.45
8.1.230.0060.00617.83
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0060.00317.48
8.1.190.0050.00317.48
8.1.180.0000.00818.10
8.1.170.0030.00518.62
8.1.160.0000.00820.65
8.1.150.0040.00418.90
8.1.140.0000.00819.50
8.1.130.0000.00717.70
8.1.120.0040.00417.47
8.1.110.0100.00017.50
8.1.100.0030.00317.50
8.1.90.0040.00417.63
8.1.80.0040.00417.58
8.1.70.0000.00817.57
8.1.60.0080.00017.57
8.1.50.0030.00617.54
8.1.40.0000.01117.70
8.1.30.0040.00417.63
8.1.20.0040.00417.69
8.1.10.0030.00617.69
8.1.00.0000.00817.75
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.42
8.0.270.0030.00617.24
8.0.260.0000.00617.33
8.0.250.0030.00317.22
8.0.240.0000.00617.18
8.0.230.0050.00217.13
8.0.220.0000.00717.00
8.0.210.0030.00317.07
8.0.200.0030.00317.14
8.0.190.0060.00317.17
8.0.180.0040.00417.13
8.0.170.0080.00017.05
8.0.160.0040.00417.06
8.0.150.0070.00017.04
8.0.140.0030.00617.08
8.0.130.0060.00013.47
8.0.120.0000.00817.03
8.0.110.0000.00817.06
8.0.100.0040.00416.97
8.0.90.0040.00417.10
8.0.80.0140.00017.16
8.0.70.0030.00616.97
8.0.60.0050.00217.00
8.0.50.0070.00016.97
8.0.30.0110.00717.43
8.0.20.0160.00417.40
8.0.10.0050.00217.29
8.0.00.0070.01516.99
7.4.330.0020.00216.67
7.4.320.0000.00616.60
7.4.300.0000.00816.72
7.4.290.0030.00316.62
7.4.280.0040.00416.75
7.4.270.0000.00716.76
7.4.260.0070.00016.59
7.4.250.0040.00416.63
7.4.240.0000.00716.62
7.4.230.0050.00316.56
7.4.220.0090.01516.76
7.4.210.0090.00616.75
7.4.200.0030.00616.73
7.4.160.0050.01116.64
7.4.150.0070.01117.40
7.4.140.0090.01217.86
7.4.130.0060.01216.67
7.4.120.0120.00816.66
7.4.110.0120.01216.64
7.4.100.0070.01116.59
7.4.90.0140.00416.85
7.4.80.0100.01019.39
7.4.70.0110.00716.94
7.4.60.0070.01016.68
7.4.50.0070.00716.40
7.4.40.0000.01616.78
7.4.30.0140.00716.76
7.4.00.0120.00315.28
7.3.330.0030.00313.29
7.3.320.0060.00013.21
7.3.310.0030.00316.55
7.3.300.0000.00716.45
7.3.290.0100.00916.39
7.3.280.0100.01016.42
7.3.270.0130.01317.40
7.3.260.0060.01816.64
7.3.240.0120.00916.51
7.3.230.0100.00716.91
7.3.210.0140.00316.48
7.3.200.0170.00319.39
7.3.190.0070.01016.62
7.3.180.0030.01316.45
7.3.170.0120.00616.50
7.3.160.0130.00316.57
7.3.10.0040.01216.61
7.3.00.0060.00916.52
7.2.330.0030.01416.68
7.2.320.0090.00916.77
7.2.310.0090.00916.61
7.2.300.0130.00316.45
7.2.290.0120.00416.64
7.2.130.0120.00816.68
7.2.120.0120.00416.89
7.2.110.0070.01016.69
7.2.100.0210.00016.84
7.2.90.0090.00916.81
7.2.80.0130.01016.88
7.2.70.0170.00716.48
7.2.60.0140.00816.86
7.2.50.0140.01116.65
7.2.40.0100.01016.88
7.2.30.0110.00616.77
7.2.20.0080.01216.91
7.2.10.0030.01616.80
7.2.00.0050.01318.21
7.1.250.0080.00815.65
7.1.200.0060.00615.71
7.1.100.0000.00818.13
7.1.70.0030.00617.18
7.1.60.0130.01019.28
7.1.50.0070.00416.98
7.1.00.0000.08022.46
7.0.200.0000.00916.54
7.0.60.0030.04021.82
7.0.50.0070.04717.82
7.0.40.0000.09019.98
7.0.30.0470.07020.09
7.0.20.0200.08720.00
7.0.10.0070.04020.33
7.0.00.0100.05320.30
5.6.280.0070.06020.86
5.6.210.0070.07320.61
5.6.200.0070.04018.12
5.6.190.0070.08720.61
5.6.180.0230.08020.67
5.6.170.0370.07720.38
5.6.160.0070.06020.71
5.6.150.0100.07718.18
5.6.140.0000.06718.18
5.6.130.0030.08318.15
5.6.120.0130.08021.02
5.6.110.0030.07320.97
5.6.100.0100.06320.95
5.6.90.0130.05720.98
5.6.80.0100.04720.37
5.5.350.3800.04720.38
5.5.340.0070.04317.99
5.5.330.0070.09020.41
5.5.320.0600.07720.13
5.5.310.0270.05020.28
5.5.300.0030.06017.92
5.5.290.0070.08318.01
5.5.280.0130.06320.89
5.5.270.0070.05720.86
5.5.260.0030.07320.64
5.5.250.0070.08720.71
5.5.240.0130.04020.26

preferences:
50.02 ms | 401 KiB | 5 Q