3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period_start = '2016-01-01 00:00:00'; $period_end = '2016-01-31 23:59:59'; $uptime = []; $incidents = [ ['start' => '2016-01-05 00:00:00', 'end' => '2016-01-10 23:59:59'], ['start' => '2016-01-07 00:00:00', 'end' => '2016-01-15 23:59:59'], ['start' => '2016-01-20 00:00:00', 'end' => '2016-01-25 23:59:59'], ['start' => '2016-01-23 00:00:00', 'end' => '2016-01-24 23:59:59'] ]; if(strtotime($period_start) <= strtotime($incidents[0]['start'])) { array_push($uptime,['start' => $period_start, 'end' => $incidents[0]['start']]); } for($i=0;$i<sizeof($incidents);$i++) { if($incident[$i+1]) { if(strtotime($incident[$i]['end']) > strtotime($incident[$i+1]['start'])) { echo "sap"; } } } if(strtotime($period_end) >= strtotime($incidents[sizeof($incidents)-1]['end'])) { array_push($uptime,['start' => $incidents[0]['end'], 'end' => $period_end]); } print_r( $uptime );

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.40.0100.01019.09
8.3.30.0120.00318.79
8.3.20.0040.00418.86
8.3.10.0040.00421.85
8.3.00.0070.00021.82
8.2.170.0140.00022.96
8.2.160.0090.00622.20
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00319.95
8.2.120.0070.00026.35
8.2.110.0070.01020.45
8.2.100.0040.01118.03
8.2.90.0040.00418.00
8.2.80.0090.00317.97
8.2.70.0040.00417.93
8.2.60.0080.00019.23
8.2.50.0060.00318.10
8.2.40.0040.00420.59
8.2.30.0040.00419.39
8.2.20.0000.00818.16
8.2.10.0040.00418.24
8.2.00.0050.00217.93
8.1.270.0070.00023.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00722.02
8.1.230.0070.00420.90
8.1.220.0050.00317.79
8.1.210.0030.00618.77
8.1.200.0030.00617.47
8.1.190.0030.00617.48
8.1.180.0080.00018.10
8.1.170.0040.00418.77
8.1.160.0040.00423.84
8.1.150.0030.00718.93
8.1.140.0040.00419.69
8.1.130.0000.00717.79
8.1.120.0070.00017.65
8.1.110.0030.00317.54
8.1.100.0040.00417.66
8.1.90.0040.00417.55
8.1.80.0000.00717.57
8.1.70.0030.00317.54
8.1.60.0070.00317.58
8.1.50.0040.00417.55
8.1.40.0030.00617.62
8.1.30.0000.00817.69
8.1.20.0080.00017.76
8.1.10.0000.00717.71
8.1.00.0040.00417.75
8.0.300.0030.00519.90
8.0.290.0030.00516.75
8.0.280.0040.00418.46
8.0.270.0030.00717.24
8.0.260.0060.00017.29
8.0.250.0100.00017.07
8.0.240.0000.00717.09
8.0.230.0030.00317.11
8.0.220.0030.00317.04
8.0.210.0000.00716.99
8.0.200.0070.00017.03
8.0.190.0000.00717.20
8.0.180.0000.00817.16
8.0.170.0000.00817.08
8.0.160.0030.00517.15
8.0.150.0100.00017.06
8.0.140.0040.00417.16
8.0.130.0060.00013.48
8.0.120.0000.00817.05
8.0.110.0040.00417.06
8.0.100.0070.00017.01
8.0.90.0040.00417.10
8.0.80.0060.01217.15
8.0.70.0050.00316.98
8.0.60.0070.00017.13
8.0.50.0040.00416.99
8.0.30.0100.00817.28
8.0.20.0090.01217.40
8.0.10.0040.00417.13
8.0.00.0110.00716.91
7.4.330.0030.00315.55
7.4.320.0030.00316.77
7.4.300.0000.00616.75
7.4.290.0070.00016.55
7.4.280.0060.00316.69
7.4.270.0070.00016.59
7.4.260.0030.00316.50
7.4.250.0070.00016.61
7.4.240.0030.00316.66
7.4.230.0040.00416.53
7.4.220.0110.00716.64
7.4.210.0090.00916.66
7.4.200.0030.00316.54
7.4.160.0080.01216.81
7.4.150.0060.01217.40
7.4.140.0140.01117.86
7.4.130.0060.01216.68
7.4.120.0100.00816.54
7.4.110.0140.00416.59
7.4.100.0110.00516.86
7.4.90.0170.00016.70
7.4.80.0160.00419.39
7.4.70.0060.00916.52
7.4.60.0100.01016.63
7.4.50.0030.01016.45
7.4.40.0060.01216.47
7.4.30.0100.00716.87
7.4.00.0030.01414.75
7.3.330.0000.00513.37
7.3.320.0060.00013.46
7.3.310.0050.00316.48
7.3.300.0020.00516.51
7.3.290.0090.00716.54
7.3.280.0080.01216.56
7.3.270.0160.00917.40
7.3.260.0140.00716.66
7.3.250.0070.01016.65
7.3.240.0180.00216.59
7.3.230.0100.00716.62
7.3.210.0100.00616.66
7.3.200.0090.01216.73
7.3.190.0090.00916.73
7.3.180.0060.01616.74
7.3.170.0060.01216.70
7.3.160.0060.01116.58
7.2.330.0040.01416.76
7.2.320.0100.01316.79
7.2.310.0120.00816.75
7.2.300.0130.01016.61
7.2.290.0070.01016.77
7.2.60.0040.01117.13
7.2.50.0060.01017.01
7.2.00.0030.01519.62
7.1.200.0060.00616.07
7.1.70.0030.00717.27
7.1.60.0040.00717.35
7.1.00.0000.08022.54
7.0.200.0130.01015.25
7.0.120.0130.05322.09
7.0.110.0030.06322.03
7.0.100.0130.05322.09
7.0.90.0170.09322.19
7.0.80.0030.07022.09
7.0.70.0030.06022.26
7.0.60.0170.07022.07
7.0.50.0030.06022.09
7.0.40.0100.06022.18
7.0.30.0030.06322.12
7.0.20.0100.06022.07
7.0.10.0130.05322.07
7.0.00.0070.05722.10
5.6.270.0100.05721.05
5.6.260.0100.05721.13
5.6.250.0070.06020.87
5.6.240.0170.07320.81
5.6.230.0100.07721.06
5.6.220.0070.06020.98
5.6.210.0100.05720.68
5.6.200.0170.08021.07
5.6.190.0100.06020.87
5.6.180.0070.05720.80
5.6.170.0070.07720.75
5.6.160.0000.07320.93
5.6.150.0070.06021.04
5.6.140.0200.07020.99
5.6.130.0130.10020.80
5.6.120.0070.05720.99
5.6.110.0030.06320.99
5.6.100.0100.05320.99
5.6.90.0100.06021.02
5.6.80.0130.05020.45
5.6.70.0130.04720.37
5.6.60.0100.05320.32
5.6.50.0070.05720.42
5.6.40.0100.05320.42
5.6.30.0130.04720.29
5.6.20.0070.05720.39
5.6.10.0000.06020.38
5.6.00.0070.06720.27

preferences:
65.18 ms | 400 KiB | 5 Q