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_start]); } 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.70.0110.01116.88
8.3.60.0110.01116.75
8.3.50.0080.01021.21
8.3.40.0120.00919.04
8.3.30.0070.00718.97
8.3.20.0070.00718.52
8.3.10.0050.00323.48
8.3.00.0000.00721.95
8.2.190.0120.00318.47
8.2.180.0080.01517.13
8.2.170.0070.01122.96
8.2.160.0070.00722.16
8.2.150.0030.00624.18
8.2.140.0060.00324.66
8.2.130.0080.00019.77
8.2.120.0040.00426.35
8.2.110.0060.00320.97
8.2.100.0060.00618.03
8.2.90.0040.00417.75
8.2.80.0000.00817.97
8.2.70.0040.00418.04
8.2.60.0080.00019.06
8.2.50.0060.00318.10
8.2.40.0050.00320.58
8.2.30.0000.00819.37
8.2.20.0040.00418.08
8.2.10.0050.00318.19
8.2.00.0000.00717.81
8.1.280.0120.00325.92
8.1.270.0040.00423.88
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00021.27
8.1.230.0090.00318.91
8.1.220.0060.00317.78
8.1.210.0000.00918.77
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0090.00018.10
8.1.170.0040.00418.83
8.1.160.0050.00322.21
8.1.150.0000.01019.01
8.1.140.0000.00819.57
8.1.130.0060.00317.82
8.1.120.0050.00317.55
8.1.110.0040.00417.59
8.1.100.0040.00417.68
8.1.90.0040.00417.65
8.1.80.0040.00417.57
8.1.70.0050.00317.58
8.1.60.0090.00417.61
8.1.50.0000.00817.61
8.1.40.0060.00317.65
8.1.30.0030.00517.72
8.1.20.0040.00417.66
8.1.10.0060.00317.58
8.1.00.0000.00717.57
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.39
8.0.270.0030.00717.28
8.0.260.0030.00317.28
8.0.250.0040.00417.14
8.0.240.0000.00617.18
8.0.230.0000.00717.12
8.0.220.0030.00317.03
8.0.210.0070.00016.98
8.0.200.0000.00617.22
8.0.190.0000.00717.18
8.0.180.0040.00417.09
8.0.170.0050.00317.10
8.0.160.0040.00417.25
8.0.150.0040.00817.18
8.0.140.0040.00417.02
8.0.130.0070.00013.49
8.0.120.0040.00417.09
8.0.110.0040.00417.23
8.0.100.0040.00417.12
8.0.90.0020.00517.07
8.0.80.0110.00717.11
8.0.70.0000.00817.04
8.0.60.0000.00716.96
8.0.50.0000.00817.14
8.0.30.0130.00717.34
8.0.20.0090.01117.40
8.0.10.0040.00417.15
8.0.00.0130.00317.14
7.4.330.0000.00615.55
7.4.320.0030.00316.73
7.4.300.0060.00016.64
7.4.290.0030.00316.64
7.4.280.0030.00616.65
7.4.270.0070.00016.80
7.4.260.0000.00716.66
7.4.250.0020.00516.67
7.4.240.0050.00216.75
7.4.230.0000.00816.60
7.4.220.0090.01016.78
7.4.210.0030.01616.57
7.4.200.0070.00016.55
7.4.160.0070.01316.81
7.4.150.0110.00717.40
7.4.140.0140.00917.86
7.4.130.0090.00916.73
7.4.120.0050.01416.61
7.4.110.0120.00616.57
7.4.100.0090.00916.81
7.4.90.0090.00816.60
7.4.80.0040.01219.39
7.4.70.0090.00616.75
7.4.60.0030.01216.72
7.4.50.0100.00716.79
7.4.40.0060.01616.59
7.4.30.0080.00816.79
7.4.00.0070.01015.08
7.3.330.0070.00013.44
7.3.320.0000.00513.38
7.3.310.0040.00416.68
7.3.300.0000.00716.54
7.3.290.0080.01016.58
7.3.280.0110.00816.57
7.3.270.0110.00717.40
7.3.260.0110.01016.72
7.3.250.0090.00816.58
7.3.240.0060.01216.70
7.3.230.0070.01116.58
7.3.210.0090.00616.74
7.3.200.0120.00916.82
7.3.190.0050.01316.71
7.3.180.0110.01116.77
7.3.170.0100.00716.69
7.3.160.0120.00916.78
7.2.330.0030.01516.99
7.2.320.0170.00016.94
7.2.310.0160.00316.77
7.2.300.0140.00616.73
7.2.290.0130.00316.91
7.2.60.0080.00817.25
7.1.200.0040.00815.88
7.1.70.0000.00917.12
7.1.60.0070.00717.32
7.1.00.0070.07322.41
7.0.200.0240.00715.11
7.0.120.0170.05722.05
7.0.110.0070.06022.03
7.0.100.0170.04722.03
7.0.90.0000.06721.97
7.0.80.0070.05722.11
7.0.70.0170.06722.05
7.0.60.0170.06722.14
7.0.50.0100.07722.12
7.0.40.0200.04722.19
7.0.30.0130.06022.11
7.0.20.0030.06322.01
7.0.10.0030.06322.06
7.0.00.0030.08322.07
5.6.270.0100.05720.85
5.6.260.0130.05720.79
5.6.250.0130.06320.89
5.6.240.0030.06320.89
5.6.230.0030.06720.85
5.6.220.0070.05721.00
5.6.210.0130.07320.98
5.6.200.0100.07021.00
5.6.190.0100.06321.01
5.6.180.0170.05020.86
5.6.170.0100.06321.00
5.6.160.0100.07720.99
5.6.150.0170.06020.80
5.6.140.0100.07720.92
5.6.130.0100.06320.75
5.6.120.0070.06021.01
5.6.110.0070.06721.03
5.6.100.0130.06320.98
5.6.90.0170.04720.91
5.6.80.0130.04720.31
5.6.70.0030.07320.13
5.6.60.0030.06320.13
5.6.50.0100.05020.13
5.6.40.0070.05320.20
5.6.30.0030.06020.16
5.6.20.0070.06020.20
5.6.10.0130.05020.21
5.6.00.0100.05320.17

preferences:
29.35 ms | 401 KiB | 5 Q