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->y*365*24)+($interval->d*24)+ $interval->h ;

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.0070.01416.88
8.3.50.0080.01021.14
8.3.40.0120.00318.70
8.3.30.0040.01118.83
8.3.20.0100.00320.10
8.3.10.0070.00023.61
8.3.00.0050.00523.54
8.2.180.0110.00718.41
8.2.170.0070.00722.96
8.2.160.0100.00320.58
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00321.12
8.2.120.0070.00026.35
8.2.110.0000.01021.08
8.2.100.0030.00917.92
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0040.00418.09
8.2.40.0030.00622.28
8.2.30.0000.00719.40
8.2.20.0040.00417.85
8.2.10.0000.00718.20
8.2.00.0040.00418.25
8.1.280.0160.00925.92
8.1.270.0040.00422.01
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.48
8.1.230.0070.00417.83
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0000.00917.50
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0000.00718.69
8.1.160.0030.00520.83
8.1.150.0000.00819.05
8.1.140.0080.00019.61
8.1.130.0030.00317.82
8.1.120.0070.00017.69
8.1.110.0070.00417.55
8.1.100.0040.00417.70
8.1.90.0030.00317.54
8.1.80.0000.00717.68
8.1.70.0000.00717.65
8.1.60.0000.00817.64
8.1.50.0000.00917.67
8.1.40.0050.00517.66
8.1.30.0030.00617.84
8.1.20.0000.00717.76
8.1.10.0040.00417.59
8.1.00.0040.00417.70
8.0.300.0000.00818.77
8.0.290.0050.00216.75
8.0.280.0070.00018.45
8.0.270.0030.00317.34
8.0.260.0030.00317.39
8.0.250.0030.00317.19
8.0.240.0000.00717.16
8.0.230.0040.00417.18
8.0.220.0050.00317.13
8.0.210.0030.00517.02
8.0.200.0060.00017.21
8.0.190.0030.00717.07
8.0.180.0040.00417.15
8.0.170.0000.00817.10
8.0.160.0050.00317.10
8.0.150.0000.00717.12
8.0.140.0030.00317.09
8.0.130.0000.00613.49
8.0.120.0000.00816.96
8.0.110.0000.00717.01
8.0.100.0000.00716.93
8.0.90.0000.00716.93
8.0.80.0060.01117.03
8.0.70.0050.00317.08
8.0.60.0070.00016.96
8.0.50.0040.00417.05
8.0.30.0100.00817.26
8.0.20.0130.00717.43
8.0.10.0080.00017.17
8.0.00.0090.01317.04
7.4.330.0000.00516.92
7.4.320.0000.00616.64
7.4.300.0030.00316.56
7.4.290.0030.00316.66
7.4.280.0080.00016.64
7.4.270.0030.00316.54
7.4.260.0000.00716.64
7.4.250.0000.00716.59
7.4.240.0050.00216.68
7.4.230.0040.00416.82
7.4.220.0120.01216.84
7.4.210.0110.00316.76
7.4.200.0030.00316.50
7.4.160.0060.01016.57
7.4.150.0070.01117.40
7.4.140.0140.00917.86
7.4.130.0120.00616.73
7.4.120.0100.00916.86
7.4.110.0000.01716.61
7.4.100.0100.00716.65
7.4.90.0090.00916.75
7.4.80.0070.01019.39
7.4.70.0100.00716.86
7.4.60.0070.01016.57
7.4.50.0060.01016.56
7.4.40.0160.00316.75
7.4.30.0090.00916.84
7.4.00.0100.00714.84
7.3.330.0000.00613.16
7.3.320.0050.00013.07
7.3.310.0070.00016.34
7.3.300.0000.00716.36
7.3.290.0050.00916.36
7.3.280.0120.00316.35
7.3.270.0090.00917.40
7.3.260.0130.00916.59
7.3.240.0080.01316.53
7.3.230.0120.00616.62
7.3.210.0130.00316.69
7.3.200.0130.00619.39
7.3.190.0060.01216.32
7.3.180.0130.01016.60
7.3.170.0060.01316.60
7.3.160.0060.01816.40
7.3.10.0230.00916.91
7.3.00.0130.00616.05
7.2.330.0120.00616.51
7.2.320.0070.01416.84
7.2.310.0080.00816.39
7.2.300.0130.00316.69
7.2.290.0140.00316.60
7.2.130.0220.00616.47
7.2.120.0180.00616.62
7.2.110.0430.00716.45
7.2.100.0380.01717.04
7.2.90.0450.01016.81
7.2.80.0350.00616.91
7.2.70.0350.01417.03
7.2.60.0180.00616.81
7.2.50.0330.01216.66
7.2.40.0310.01016.93
7.2.30.0190.01116.33
7.2.20.0440.01017.13
7.2.10.0210.00316.43
7.2.00.0090.01318.22
7.1.250.0290.00715.47
7.1.200.0000.01515.68
7.1.100.0070.00717.96
7.1.70.0000.00817.04
7.1.60.0030.02219.28
7.1.50.0090.01217.27
7.1.00.0070.08722.45
7.0.200.0030.00717.08
7.0.60.0100.03721.66
7.0.50.0070.05317.80
7.0.40.0070.08320.04
7.0.30.0270.07720.00
7.0.20.0130.05720.18
7.0.10.0100.08720.13
7.0.00.0100.06320.20
5.6.280.0000.03720.91
5.6.210.0170.04020.61
5.6.200.0070.08018.10
5.6.190.0100.08720.41
5.6.180.0270.08020.41
5.6.170.0430.06320.40
5.6.160.0070.04720.49
5.6.150.0070.04718.18
5.6.140.0100.04318.09
5.6.130.0130.07318.11
5.6.120.0030.09020.90
5.6.110.0100.08720.98
5.6.100.0070.06021.11
5.6.90.0130.05321.00
5.6.80.0230.04320.36
5.5.350.2430.03320.54
5.5.340.0070.03317.95
5.5.330.0130.07720.45
5.5.320.0570.06720.29
5.5.310.0270.04720.32
5.5.300.0130.07317.95
5.5.290.0030.04717.95
5.5.280.0130.05020.78
5.5.270.0100.08320.98
5.5.260.0070.08020.98
5.5.250.0130.07020.69
5.5.240.0200.07320.13

preferences:
48.98 ms | 401 KiB | 5 Q