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 = $now->diff( $pickUpDateTime );; print $interval->format("%H:%I:%S");

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.0170.00316.50
8.3.50.0060.01316.54
8.3.40.0110.00718.71
8.3.30.0110.00418.79
8.3.20.0050.00220.34
8.3.10.0060.00321.89
8.3.00.0080.00023.61
8.2.180.0100.01018.41
8.2.170.0070.00722.96
8.2.160.0000.01420.52
8.2.150.0070.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00821.06
8.2.120.0000.00826.35
8.2.110.0090.00319.45
8.2.100.0110.00018.03
8.2.90.0040.00419.18
8.2.80.0000.00917.97
8.2.70.0060.00317.75
8.2.60.0000.00818.04
8.2.50.0050.00318.09
8.2.40.0030.00622.09
8.2.30.0040.00419.50
8.2.20.0040.00417.89
8.2.10.0020.00518.04
8.2.00.0040.00418.12
8.1.270.0170.00322.10
8.1.260.0000.00928.09
8.1.250.0000.00728.09
8.1.240.0060.00322.54
8.1.230.0120.00017.83
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0100.00017.25
8.1.190.0040.00417.34
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0040.00420.77
8.1.150.0030.00618.80
8.1.140.0040.00419.58
8.1.130.0030.00317.62
8.1.120.0070.00017.57
8.1.110.0030.00517.51
8.1.100.0050.00317.59
8.1.90.0040.00417.60
8.1.80.0040.00417.63
8.1.70.0000.00717.60
8.1.60.0000.00917.70
8.1.50.0080.00017.50
8.1.40.0040.00717.51
8.1.30.0080.00017.63
8.1.20.0040.00417.62
8.1.10.0070.00017.75
8.1.00.0070.00017.67
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0040.00418.42
8.0.270.0030.00317.33
8.0.260.0030.00317.29
8.0.250.0030.00317.17
8.0.240.0000.00817.18
8.0.230.0000.00716.93
8.0.220.0030.00317.01
8.0.210.0030.00316.95
8.0.200.0040.00417.06
8.0.190.0050.00317.08
8.0.180.0000.00716.92
8.0.170.0030.00516.95
8.0.160.0050.00217.09
8.0.150.0000.00716.95
8.0.140.0000.00716.87
8.0.130.0060.00013.38
8.0.120.0000.00917.05
8.0.110.0000.00717.07
8.0.100.0000.00717.02
8.0.90.0040.00416.93
8.0.80.0030.01317.03
8.0.70.0070.00017.03
8.0.60.0000.00716.81
8.0.50.0040.00416.92
8.0.30.0110.00817.19
8.0.20.0120.00617.43
8.0.10.0000.00716.96
8.0.00.0090.00916.73
7.4.330.0000.00516.76
7.4.320.0030.00316.58
7.4.300.0000.00816.69
7.4.290.0000.00716.54
7.4.280.0040.00416.52
7.4.270.0000.00716.69
7.4.260.0000.00716.64
7.4.250.0020.00516.63
7.4.240.0040.00416.68
7.4.230.0000.00716.67
7.4.220.0100.00716.53
7.4.210.0000.01416.68
7.4.200.0040.00416.52
7.4.160.0030.01316.51
7.4.150.0130.00417.40
7.4.140.0200.00617.86
7.4.130.0110.00816.63
7.4.120.0090.00916.52
7.4.110.0100.00716.51
7.4.100.0090.00616.72
7.4.90.0090.00916.68
7.4.80.0030.01519.39
7.4.70.0080.01216.64
7.4.60.0000.01616.67
7.4.50.0110.00316.65
7.4.40.0070.01316.71
7.4.30.0070.01216.91
7.4.00.0040.01214.88
7.3.330.0000.00613.09
7.3.320.0050.00013.02
7.3.310.0030.00316.28
7.3.300.0000.00716.27
7.3.290.0050.01116.30
7.3.280.0060.01116.25
7.3.270.0080.01117.40
7.3.260.0120.01216.25
7.3.250.0140.00616.36
7.3.240.0080.01116.37
7.3.230.0110.00716.39
7.3.210.0070.01116.36
7.3.200.0070.01119.39
7.3.190.0110.00916.54
7.3.180.0070.01316.57
7.3.170.0030.01516.74
7.3.160.0080.00816.53
7.3.10.0140.00516.41
7.3.00.0240.00316.54
7.2.330.0060.01316.83
7.2.320.0090.00916.72
7.2.310.0070.01016.95
7.2.300.0110.00616.62
7.2.290.0080.00816.62
7.2.130.0330.00416.57
7.2.120.0170.00616.65
7.2.110.0110.00416.47
7.2.100.0070.01017.02
7.2.90.0110.00716.77
7.2.80.0160.00816.68
7.2.70.0220.00717.06
7.2.60.0180.00616.78
7.2.50.0210.00316.58
7.2.40.0190.00316.87
7.2.30.0090.00916.95
7.2.20.0120.00817.05
7.2.10.0150.00616.95
7.2.00.0060.00918.17
7.1.250.0060.01315.23
7.1.200.0040.01115.63
7.1.100.0060.00618.21
7.1.70.0030.00717.37
7.1.60.0090.01619.28
7.1.50.0100.01016.99
7.1.00.0100.07022.30
7.0.200.0000.00916.89
7.0.60.0070.04721.77
7.0.50.0030.08717.91
7.0.40.0130.06320.27
7.0.30.0370.06720.12
7.0.20.0300.06720.18
7.0.10.0130.08320.04
7.0.00.0030.09020.11
5.6.280.0030.03720.82
5.6.210.0100.08320.74
5.6.200.0130.07718.15
5.6.190.0100.05020.45
5.6.180.0330.06020.45
5.6.170.0500.05320.41
5.6.160.0070.07020.32
5.6.150.0000.05318.19
5.6.140.0000.06718.18
5.6.130.0100.04718.17
5.6.120.0130.07021.14
5.6.110.0000.08320.98
5.6.100.0200.06721.10
5.6.90.0100.07321.09
5.6.80.0130.07320.34
5.5.350.4200.04020.43
5.5.340.0130.07718.01
5.5.330.0100.08020.37
5.5.320.0630.06320.18
5.5.310.0230.07320.26
5.5.300.0070.07718.01
5.5.290.0100.07718.02
5.5.280.0130.06320.84
5.5.270.0130.07320.89
5.5.260.0170.07320.76
5.5.250.0030.09320.57
5.5.240.0230.06020.21

preferences:
50.84 ms | 400 KiB | 5 Q