3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_range_create_event = "Jan 12, 2019 08:00 PM - Feb 14, 2019 06:00 AM"; list($start, $end) = array_map(function ($d) { return new DateTime($d); }, explode('-', $date_range_create_event)); echo "Start date = " . $start->format('M j, Y') . "\n"; echo "Start date = " . $start->format('Y-m-d') . "\n"; echo "Start time = " . $start->format('h:i A') . "\n"; echo "Start time = " . $start->format('H:i') . "\n"; echo "End date = " . $end->format('M j, Y') . "\n"; echo "End time = " . $end->format('h:i A') . "\n"; $duration = $start->diff($end); echo "Event is " . $duration->format('%h') . " hours and " . $duration->format('%i') . " minutes long\n";

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.5.10.0110.00716.57
8.5.00.0130.01020.36
8.4.150.0020.00114.05
8.4.140.0200.00917.63
8.4.130.0110.01018.04
8.4.120.0110.01020.36
8.4.110.0140.00622.48
8.4.100.0100.01017.89
8.4.90.0130.00720.64
8.4.80.0020.00718.86
8.4.70.0110.00819.01
8.4.60.0120.00920.61
8.4.50.0110.01018.91
8.4.40.0080.01222.17
8.4.30.0040.01222.17
8.4.20.0100.01020.27
8.4.10.0060.00618.03
8.3.280.0110.00918.76
8.3.270.0110.00916.45
8.3.260.0100.00716.53
8.3.250.0120.00719.12
8.3.240.0090.01116.65
8.3.230.0140.00516.53
8.3.220.0040.00419.11
8.3.210.0120.00716.66
8.3.200.0040.00516.55
8.3.190.0060.00217.27
8.3.180.0030.00617.17
8.3.170.0130.00619.07
8.3.160.0070.01120.06
8.3.150.0090.00917.14
8.3.140.0080.00016.54
8.3.130.0060.00316.86
8.3.120.0060.00320.57
8.3.110.0040.00420.94
8.3.100.0080.00824.06
8.3.90.0090.00926.77
8.3.80.0090.00017.97
8.3.70.0080.01118.29
8.3.60.0130.00318.37
8.3.50.0090.01117.22
8.3.40.0070.01418.90
8.3.30.0090.00618.84
8.3.20.0040.00421.75
8.3.10.0000.00823.40
8.3.00.0050.00322.30
8.2.290.0120.00820.45
8.2.280.0040.00618.81
8.2.270.0070.01117.18
8.2.260.0070.01117.03
8.2.250.0040.00418.62
8.2.240.0060.00318.80
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0060.00318.66
8.2.190.0160.00320.09
8.2.180.0110.00716.75
8.2.170.0070.00722.96
8.2.160.0100.00719.93
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.79
8.2.110.0000.01120.94
8.2.100.0000.01119.38
8.2.90.0030.00518.03
8.2.80.0040.00420.50
8.2.70.0000.00818.18
8.2.60.0060.00318.22
8.2.50.0040.00418.10
8.2.40.0040.00419.61
8.2.30.0000.00919.32
8.2.20.0110.00018.07
8.2.10.0040.00419.50
8.2.00.0040.00419.15
8.1.330.0090.00922.09
8.1.320.0080.01016.85
8.1.310.0080.00818.41
8.1.300.0060.01016.41
8.1.290.0080.00030.84
8.1.280.0120.00325.92
8.1.270.0030.00519.00
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00619.38
8.1.230.0090.00321.02
8.1.220.0080.00017.79
8.1.210.0060.00318.91
8.1.200.0060.00317.60
8.1.190.0080.00017.60
8.1.180.0040.00418.10
8.1.170.0050.00318.83
8.1.160.0000.00819.04
8.1.150.0060.00319.09
8.1.140.0000.00720.80
8.1.130.0040.00420.30
8.1.120.0070.00017.57
8.1.110.0040.00417.55
8.1.100.0090.00017.63
8.1.90.0040.00417.56
8.1.80.0000.00717.74
8.1.70.0030.00517.57
8.1.60.0080.00017.69
8.1.50.0030.00617.55
8.1.40.0040.00417.66
8.1.30.0000.00817.81
8.1.20.0060.00317.70
8.1.10.0060.00617.71
8.1.00.0040.00417.72
8.0.300.0000.00820.10
8.0.290.0040.00417.00
8.0.280.0040.00418.59
8.0.270.0030.00317.35
8.0.260.0000.00618.48
8.0.250.0060.00317.09
8.0.240.0050.00217.07
8.0.230.0030.00417.16
8.0.220.0000.00716.99
8.0.210.0030.00316.98
8.0.200.0040.00417.04
8.0.190.0060.00317.18
8.0.180.0000.00717.17
8.0.170.0000.00917.06
8.0.160.0080.00017.11
8.0.150.0000.00717.15
8.0.140.0030.00517.07
8.0.130.0000.00613.49
8.0.120.0000.01017.09
8.0.110.0040.00417.16
8.0.100.0050.00216.98
8.0.90.0040.00417.05
8.0.80.0030.01417.15
8.0.70.0080.00016.98
8.0.60.0000.00717.12
8.0.50.0000.00717.07
8.0.30.0130.00417.51
8.0.20.0090.00917.27
8.0.10.0040.00417.21
8.0.00.0060.01317.02
7.4.330.0000.00715.55
7.4.320.0000.00616.68
7.4.300.0040.00416.72
7.4.290.0000.00716.75
7.4.280.0000.00916.68
7.4.270.0060.00316.61
7.4.260.0000.00716.62
7.4.250.0030.00516.58
7.4.240.0050.00316.59
7.4.230.0030.00316.51
7.4.220.0050.00316.79
7.4.210.0110.00316.77
7.4.200.0080.00016.66
7.4.160.0090.01016.62
7.4.140.0090.00917.86
7.4.130.0130.00716.64
7.4.120.0100.00616.68
7.4.110.0090.01216.70
7.4.100.0120.00916.79
7.4.90.0030.01416.79
7.4.80.0180.00319.39
7.4.70.0090.00916.61
7.4.60.0080.00916.70
7.4.50.0030.00916.78
7.4.40.0140.00316.69
7.4.00.0030.00715.12
7.3.330.0050.00013.48
7.3.320.0030.00313.24
7.3.310.0040.00416.34
7.3.300.0050.00216.35
7.3.290.0030.00316.33
7.3.280.0080.00916.52
7.3.260.0100.00916.63
7.3.240.0120.00716.52
7.3.230.0130.00316.48
7.3.210.0110.00916.81
7.3.200.0060.01316.60
7.3.190.0080.01216.59
7.3.180.0110.00516.55
7.3.170.0060.01516.68
7.3.160.0160.00016.67
7.3.120.0100.00014.63
7.3.110.0060.00615.00
7.3.100.0060.00614.66
7.3.90.0030.00915.02
7.3.80.0000.01314.93
7.3.70.0080.00314.96
7.3.60.0110.00414.94
7.3.50.0100.00314.75
7.3.40.0100.00314.93
7.3.30.0030.00515.13
7.3.20.0110.00416.80
7.3.10.0280.00515.76
7.3.00.0310.01115.96
7.2.330.0070.01016.52
7.2.320.0090.00916.84
7.2.310.0100.00716.84
7.2.300.0030.01416.61
7.2.290.0080.01016.91
7.2.250.0120.00615.16
7.2.240.0070.01015.17
7.2.230.0040.00815.33
7.2.220.0030.00714.83
7.2.210.0070.00715.32
7.2.200.0050.00515.18
7.2.190.0070.00714.92
7.2.180.0050.00815.19
7.2.170.0090.00915.23
7.2.160.0030.00615.25
7.2.150.0070.00417.02
7.2.140.0060.00616.79
7.2.130.0310.00816.32
7.2.120.0280.00716.09
7.2.110.0220.00816.20
7.2.100.0250.01216.04
7.2.90.0380.00916.12
7.2.80.0360.01216.24
7.2.70.0330.00316.20
7.2.60.0290.00416.03
7.2.50.0280.01116.08
7.2.40.0350.01016.01
7.2.30.0370.01016.14
7.2.20.0260.01616.13
7.2.10.0250.00816.03
7.2.00.0230.00516.20
7.1.330.0040.00715.98
7.1.320.0000.01515.69
7.1.310.0040.00815.89
7.1.300.0070.00315.67
7.1.290.0070.00715.60
7.1.280.0070.01015.98
7.1.270.0000.01115.63
7.1.260.0050.00315.86
7.1.250.0290.00814.80

preferences:
164.43 ms | 403 KiB | 5 Q