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"); $interval = date_diff($now, $pickUpDateTime); if ( $v = $interval->h >= 1 ) echo ($interval->d);

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.0090.00616.75
8.3.50.0140.00521.23
8.3.40.0100.00718.97
8.3.30.0070.01118.96
8.3.20.0050.00220.34
8.3.10.0000.00821.73
8.3.00.0040.00723.36
8.2.180.0070.01017.00
8.2.170.0090.00622.96
8.2.160.0100.00320.53
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0050.00321.13
8.2.120.0040.00426.35
8.2.110.0080.00420.39
8.2.100.0080.00417.84
8.2.90.0000.00819.33
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0080.00018.03
8.2.50.0000.00918.09
8.2.40.0090.00022.33
8.2.30.0000.00919.42
8.2.20.0050.00217.88
8.2.10.0000.00718.18
8.2.00.0040.00418.13
8.1.280.0040.01425.92
8.1.270.0100.01022.02
8.1.260.0000.00928.09
8.1.250.0070.00028.09
8.1.240.0060.00322.05
8.1.230.0060.00617.58
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0090.00017.35
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0090.00018.68
8.1.160.0000.00720.76
8.1.150.0030.00519.02
8.1.140.0040.00419.52
8.1.130.0030.00317.68
8.1.120.0040.00417.65
8.1.110.0030.00917.69
8.1.100.0040.00417.60
8.1.90.0000.00817.67
8.1.80.0000.00817.73
8.1.70.0000.00717.70
8.1.60.0000.00917.76
8.1.50.0040.00417.67
8.1.40.0060.00317.64
8.1.30.0040.00417.70
8.1.20.0000.00817.74
8.1.10.0040.00417.73
8.1.00.0030.00517.70
8.0.300.0000.00718.77
8.0.290.0030.00516.88
8.0.280.0070.00018.52
8.0.270.0060.00317.33
8.0.260.0060.00017.39
8.0.250.0030.00317.05
8.0.240.0030.00317.17
8.0.230.0030.00317.18
8.0.220.0000.00717.00
8.0.210.0040.00416.99
8.0.200.0000.00717.20
8.0.190.0060.00317.17
8.0.180.0050.00317.01
8.0.170.0030.00517.04
8.0.160.0000.00717.07
8.0.150.0030.00317.05
8.0.140.0000.00716.90
8.0.130.0000.00713.48
8.0.120.0050.00317.07
8.0.110.0040.00417.06
8.0.100.0050.00316.99
8.0.90.0000.00717.05
8.0.80.0000.01517.07
8.0.70.0000.00817.08
8.0.60.0070.00017.07
8.0.50.0000.00717.05
8.0.30.0130.00617.08
8.0.20.0110.00917.40
8.0.10.0050.00217.21
8.0.00.0080.01417.05
7.4.330.0020.00216.84
7.4.320.0000.00616.66
7.4.300.0000.00816.79
7.4.290.0030.00316.63
7.4.280.0070.00016.57
7.4.270.0030.00316.76
7.4.260.0000.00716.75
7.4.250.0050.00216.69
7.4.240.0040.00416.72
7.4.230.0070.00016.75
7.4.220.0130.00316.52
7.4.210.0130.00716.68
7.4.200.0050.00216.77
7.4.160.0110.00416.59
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0080.01216.73
7.4.120.0070.01116.64
7.4.110.0070.01116.72
7.4.100.0170.00716.61
7.4.90.0140.00416.71
7.4.80.0120.01319.39
7.4.70.0100.00716.53
7.4.60.0120.00816.79
7.4.50.0030.00816.48
7.4.40.0090.00916.60
7.4.30.0090.00916.66
7.4.00.0000.01215.12
7.3.330.0030.00313.15
7.3.320.0050.00013.12
7.3.310.0000.00716.28
7.3.300.0070.00016.34
7.3.290.0050.01116.37
7.3.280.0070.01116.36
7.3.270.0090.00917.40
7.3.260.0110.01116.44
7.3.250.0120.00616.46
7.3.240.0110.00716.57
7.3.230.0000.01816.52
7.3.210.0130.00316.39
7.3.200.0110.00619.39
7.3.190.0090.01216.63
7.3.180.0200.00316.58
7.3.170.0170.00416.72
7.3.160.0070.01016.35
7.2.330.0070.01016.71
7.2.320.0170.00316.75
7.2.310.0130.00316.69
7.2.300.0100.00717.05
7.2.290.0120.00416.89
7.2.60.0090.00716.98
7.2.00.0070.01119.26
7.1.200.0070.00715.99
7.1.100.0060.01118.52
7.1.70.0000.00717.31
7.1.60.0030.02119.28
7.1.50.0000.01317.19
7.1.00.0000.07722.31
7.0.200.0050.00316.92
7.0.60.0070.07721.72
7.0.50.0000.04317.87
7.0.40.0070.08320.30
7.0.30.0530.07020.06
7.0.20.0330.07720.04
7.0.10.0170.05720.12
7.0.00.0070.08720.14
5.6.280.0000.06321.13
5.6.210.0070.07320.50
5.6.200.0070.08718.22
5.6.190.0130.07720.60
5.6.180.0200.06320.61
5.6.170.0400.08020.70
5.6.160.0100.05720.50
5.6.150.0070.08018.21
5.6.140.0100.03718.12
5.6.130.0130.06318.25
5.6.120.0030.08321.12
5.6.110.0100.06320.88
5.6.100.0100.07321.11
5.6.90.0100.07321.12
5.6.80.0030.04320.40
5.5.350.4370.03320.41
5.5.340.0000.04318.00
5.5.330.0170.07720.47
5.5.320.0600.05720.21
5.5.310.0270.05320.20
5.5.300.0130.03317.98
5.5.290.0070.04018.01
5.5.280.0030.05020.86
5.5.270.0000.05320.96
5.5.260.0130.06320.75
5.5.250.0230.05720.61
5.5.240.0100.07320.14

preferences:
80.48 ms | 401 KiB | 5 Q