3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2017-09-01 23:00:00'); $stop = new DateTime('2017-09-02 01:34:00'); $hours = iterator_count(new DatePeriod($start, new DateInterval('PT1S'), $stop)) / 3600; echo round($hours, 2);

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.4.120.0060.01524.04
8.4.110.0100.02124.13
8.4.100.0090.01317.86
8.4.90.0140.01720.52
8.4.80.0080.01220.47
8.4.70.0060.00818.77
8.4.60.0110.02320.64
8.4.50.0100.02318.77
8.4.40.0180.01517.87
8.4.30.0060.02623.88
8.4.20.0120.02219.70
8.4.10.0060.00919.39
8.3.250.0080.01118.71
8.3.240.0100.01517.18
8.3.230.0100.01816.96
8.3.220.0050.00818.95
8.3.210.0120.01916.75
8.3.200.0070.00716.63
8.3.190.0120.02117.32
8.3.180.0070.02118.79
8.3.170.0060.02517.26
8.3.160.0100.01716.63
8.3.150.0090.02217.00
8.3.140.0000.02516.65
8.3.130.0000.02516.77
8.3.120.0000.01418.80
8.3.110.0430.01516.35
8.3.100.0350.02516.40
8.3.90.0370.02316.53
8.3.80.0280.01016.57
8.3.70.0220.00716.49
8.3.60.0220.00716.47
8.3.50.0320.01816.21
8.3.40.0170.03017.66
8.3.30.0250.01417.52
8.3.20.0380.03017.14
8.3.10.0140.00917.64
8.3.00.0090.00919.54
8.2.290.0120.02020.25
8.2.280.0110.02220.03
8.2.270.0180.01416.60
8.2.260.0070.01817.19
8.2.250.0090.00616.77
8.2.240.0160.01016.75
8.2.230.0170.00716.46
8.2.220.0080.01716.36
8.2.210.0180.00616.36
8.2.200.0100.01416.43
8.2.190.0100.01416.41
8.2.180.0070.01816.41
8.2.170.0140.01417.60
8.2.160.0190.00817.87
8.2.150.0190.00617.59
8.2.140.0150.01217.47
8.2.130.0380.01617.55
8.2.120.0160.01017.66
8.2.110.0260.01917.83
8.2.100.0130.01317.66
8.2.90.0120.01217.77
8.2.80.0190.00617.70
8.2.70.0330.02117.92
8.2.60.0370.01817.32
8.2.50.0310.02117.80
8.2.40.0220.02817.74
8.2.30.0320.01917.88
8.2.20.0230.02617.70
8.2.10.0280.01517.57
8.2.00.0340.01917.69
8.1.330.0110.01822.03
8.1.320.0110.01916.18
8.1.310.0100.01916.70
8.1.300.0000.01416.29
8.1.290.0330.02116.23
8.1.280.0380.01616.05
8.1.270.0440.02717.50
8.1.260.0390.01717.52
8.1.250.0300.01517.53
8.1.240.0240.02117.40
8.1.230.0230.02317.63
8.1.220.0300.02017.61
8.1.210.0280.02417.34
8.1.200.0360.01617.44
8.1.190.0390.01517.30
8.1.180.0330.02217.29
8.1.170.0260.02617.40
8.1.160.0290.02217.23
8.1.150.0210.02117.27
8.1.140.0270.01917.31
8.1.130.0340.01717.17
8.1.120.0320.02317.59
8.1.110.0180.02817.34
8.1.100.0230.02717.32
8.1.90.0230.02617.61
8.1.80.0320.01517.34
8.1.70.0290.01617.43
8.1.60.0190.02517.24
8.1.50.0380.01417.26
8.1.40.0200.02717.25
8.1.30.0350.01717.49
8.1.20.0280.02117.42
8.1.10.0260.03017.34
8.1.00.0260.03017.49

preferences:
26.46 ms | 403 KiB | 5 Q