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("%Y-%m-%d %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.0190.00018.30
8.3.50.0140.00721.28
8.3.40.0110.00718.91
8.3.30.0000.01418.84
8.3.20.0070.00020.24
8.3.10.0040.00421.73
8.3.00.0040.00423.54
8.2.180.0150.00416.63
8.2.170.0110.00422.96
8.2.160.0150.00020.52
8.2.150.0080.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00421.05
8.2.120.0070.00026.35
8.2.110.0040.00720.57
8.2.100.0070.00418.03
8.2.90.0040.00417.73
8.2.80.0050.00319.13
8.2.70.0060.00318.05
8.2.60.0050.00518.11
8.2.50.0040.00418.10
8.2.40.0040.00419.32
8.2.30.0000.00819.38
8.2.20.0000.00817.75
8.2.10.0060.00317.95
8.2.00.0000.00718.11
8.1.280.0070.01425.92
8.1.270.0070.01122.04
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0190.00023.74
8.1.230.0070.00422.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.60
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0030.00518.66
8.1.160.0040.00418.94
8.1.150.0080.00018.80
8.1.140.0030.00619.50
8.1.130.0000.00717.58
8.1.120.0030.00317.59
8.1.110.0000.00817.61
8.1.100.0000.00817.50
8.1.90.0040.00417.64
8.1.80.0040.00417.60
8.1.70.0040.00417.56
8.1.60.0060.00317.55
8.1.50.0000.00817.59
8.1.40.0070.00317.53
8.1.30.0030.00617.65
8.1.20.0040.00417.64
8.1.10.0040.00417.61
8.1.00.0030.00517.70
8.0.300.0040.00419.73
8.0.290.0000.00716.75
8.0.280.0040.00418.48
8.0.270.0030.00317.39
8.0.260.0000.00617.25
8.0.250.0070.00017.18
8.0.240.0080.00017.07
8.0.230.0030.00317.04
8.0.220.0000.00716.91
8.0.210.0040.00417.00
8.0.200.0070.00017.04
8.0.190.0040.00416.98
8.0.180.0000.00717.04
8.0.170.0080.00016.89
8.0.160.0030.00317.00
8.0.150.0080.00017.07
8.0.140.0050.00216.95
8.0.130.0030.00313.38
8.0.120.0000.00817.02
8.0.110.0050.00316.95
8.0.100.0070.00016.94
8.0.90.0070.00017.11
8.0.80.0120.00417.00
8.0.70.0000.00716.95
8.0.60.0050.00217.01
8.0.50.0040.00416.91
8.0.30.0100.00717.21
8.0.20.0100.00917.40
8.0.10.0000.00717.03
8.0.00.0080.00916.93
7.4.330.0050.00016.85
7.4.320.0030.00316.69
7.4.300.0000.00816.59
7.4.290.0000.00716.60
7.4.280.0050.00516.60
7.4.270.0030.00316.68
7.4.260.0000.00716.48
7.4.250.0070.00016.55
7.4.240.0050.00216.68
7.4.230.0040.00416.63
7.4.220.0070.01116.64
7.4.210.0030.01116.75
7.4.200.0070.00016.49
7.4.160.0090.00616.51
7.4.150.0070.01017.40
7.4.140.0150.00817.86
7.4.130.0090.00916.71
7.4.120.0110.00616.70
7.4.110.0150.00616.59
7.4.100.0030.01316.57
7.4.90.0070.01116.41
7.4.80.0090.00919.39
7.4.70.0220.01116.64
7.4.60.0130.00316.46
7.4.50.0070.01116.46
7.4.40.0090.00916.59
7.4.30.0110.01116.54
7.4.00.0120.00614.75
7.3.330.0000.00613.19
7.3.320.0000.00513.11
7.3.310.0000.00716.37
7.3.300.0000.00716.28
7.3.290.0050.01216.28
7.3.280.0060.01016.25
7.3.270.0110.00717.40
7.3.260.0060.01316.56
7.3.240.0060.01316.45
7.3.230.0220.00316.70
7.3.210.0140.00316.73
7.3.200.0120.00919.39
7.3.190.0060.01016.61
7.3.180.0130.00316.67
7.3.170.0070.01016.59
7.3.160.0030.01216.55
7.3.10.0160.00816.39
7.3.00.0200.00416.14
7.2.330.0090.00916.63
7.2.320.0060.01216.91
7.2.310.0100.00716.78
7.2.300.0000.01616.73
7.2.290.0060.00916.79
7.2.130.0220.00716.75
7.2.120.0180.00616.53
7.2.110.0130.01016.14
7.2.100.0170.00316.43
7.2.90.0110.01116.32
7.2.80.0100.00616.86
7.2.70.0120.00416.58
7.2.60.0260.00516.86
7.2.50.0120.00416.64
7.2.40.0140.00616.57
7.2.30.0150.00316.83
7.2.20.0170.00316.59
7.2.10.0000.00816.86
7.2.00.0080.00518.29
7.1.250.0230.00015.71
7.1.200.0150.01115.34
7.1.100.0090.00618.10
7.1.70.0000.00717.37
7.1.60.0090.01619.28
7.1.50.0070.01417.02
7.1.00.0100.07022.40
7.0.200.0030.00617.11
7.0.60.0100.04021.72
7.0.50.0170.04717.87
7.0.40.0100.05020.06
7.0.30.0630.05020.18
7.0.20.0300.07720.13
7.0.10.0070.05020.20
7.0.00.0170.07320.18
5.6.280.0070.06020.84
5.6.210.0230.06320.54
5.6.200.0170.06718.22
5.6.190.0030.04720.60
5.6.180.0230.08020.32
5.6.170.0370.06320.71
5.6.160.0070.08720.69
5.6.150.0030.04018.19
5.6.140.0170.07318.20
5.6.130.0170.07318.18
5.6.120.0100.08021.00
5.6.110.0130.07320.89
5.6.100.0030.07721.10
5.6.90.0030.08321.00
5.6.80.0070.08720.38
5.5.350.4230.04320.36
5.5.340.0070.07717.86
5.5.330.0030.06320.57
5.5.320.0500.04320.51
5.5.310.0270.07720.31
5.5.300.0070.04717.96
5.5.290.0130.07017.91
5.5.280.0070.08320.76
5.5.270.0130.07320.96
5.5.260.0070.08320.96
5.5.250.0130.07720.65
5.5.240.0130.07020.26

preferences:
48.4 ms | 401 KiB | 5 Q