3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result5 = array( array('start_date' => '2005-10-12', 'name_event' => 'test1'), array('start_date' => '2006-10-12', 'name_event' => 'test2'), ); $daily_html = ''; foreach($result5 as $row5) { $time=strtotime($row5['start_date']); $day = date("d",$time); $month= date("m",$time); $month2= date("F",$time); $year=date("Y",$time); echo "$day $month $year ".$row5['name_event'] ; // this show me correct echo '<br/>'; addDailyHtml( "Event", "$day-$month-$year", $daily_html);// there is some problem } var_dump($daily_html); function addDailyHtml( $html, $start_date_string, $end_date_string = null, &$daily_html ) { static $htmlCount = 0; $start_date = strtotime($start_date_string); if( $end_date_string ) { $end_date = strtotime($end_date_string); } else { $end_date = $start_date; } $working_date = $start_date; do { $tDate = getdate($working_date); $working_date += 86400; $daily_html[$tDate['year']][$tDate['mon']][$tDate['mday']][$htmlCount] = $html; } while( $working_date < $end_date + 1 ); $htmlCount++; }

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.0100.00716.75
8.3.50.0090.01422.13
8.3.40.0090.00619.04
8.3.30.0110.00319.21
8.3.20.0040.00420.38
8.3.10.0000.00823.70
8.3.00.0030.00522.46
8.2.180.0130.01016.88
8.2.170.0040.01122.96
8.2.160.0200.00022.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00322.30
8.2.110.0090.00022.19
8.2.100.0040.00818.03
8.2.90.0080.00019.34
8.2.80.0000.00917.97
8.2.70.0000.00817.88
8.2.60.0060.00318.16
8.2.50.0060.00618.07
8.2.40.0040.00419.28
8.2.30.0040.00418.20
8.2.20.0080.00018.03
8.2.10.0000.00917.88
8.2.00.0040.00418.00
8.1.280.0130.00325.92
8.1.270.0050.00323.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0150.00622.51
8.1.230.0080.00320.89
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0050.00517.60
8.1.190.0040.00417.47
8.1.180.0090.00018.10
8.1.170.0040.00418.63
8.1.160.0040.00422.03
8.1.150.0050.00218.71
8.1.140.0040.00417.60
8.1.130.0000.00717.90
8.1.120.0040.00417.69
8.1.110.0060.00317.65
8.1.100.0000.00717.69
8.1.90.0000.00717.67
8.1.80.0030.00317.56
8.1.70.0030.00317.58
8.1.60.0000.00817.73
8.1.50.0040.00417.59
8.1.40.0040.00417.59
8.1.30.0050.00317.69
8.1.20.0030.00617.81
8.1.10.0000.00717.71
8.1.00.0060.00317.72
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00818.53
8.0.270.0040.00417.29
8.0.260.0000.00817.14
8.0.250.0000.00717.13
8.0.240.0050.00217.28
8.0.230.0080.00017.22
8.0.220.0050.00317.16
8.0.210.0030.00317.07
8.0.200.0030.00317.08
8.0.190.0050.00317.19
8.0.180.0040.00417.15
8.0.170.0060.00317.14
8.0.160.0070.00017.22
8.0.150.0000.00817.12
8.0.140.0030.00317.02
8.0.130.0060.00013.53
8.0.120.0080.00017.11
8.0.110.0070.00017.13
8.0.100.0080.00017.21
8.0.90.0040.00417.22
8.0.80.0000.01417.22
8.0.70.0040.00416.99
8.0.60.0080.00017.19
8.0.50.0000.01017.12
8.0.30.0120.00917.18
8.0.20.0080.01117.57
8.0.10.0040.00417.15
8.0.00.0140.00716.91
7.4.330.0000.00615.03
7.4.320.0060.00016.75
7.4.300.0060.00016.66
7.4.290.0030.00316.59
7.4.280.0040.00416.57
7.4.270.0030.00316.64
7.4.260.0000.00816.72
7.4.250.0060.00316.71
7.4.240.0060.00116.63
7.4.230.0000.00816.70
7.4.220.0090.00916.80
7.4.210.0080.00716.63
7.4.200.0040.00416.73
7.4.190.0020.00516.87
7.4.160.0060.01316.59
7.4.150.0160.00617.40
7.4.140.0100.01017.86
7.4.130.0080.01016.80
7.4.120.0060.01116.69
7.4.110.0070.01716.83
7.4.100.0070.01016.71
7.4.90.0060.01616.82
7.4.80.0070.01116.75
7.4.70.0040.01316.76
7.4.60.0100.00716.82
7.4.50.0000.00816.85
7.4.40.0120.00322.77
7.4.30.0030.01316.51
7.4.10.0100.00715.03
7.4.00.0020.01615.18
7.3.330.0050.00013.43
7.3.320.0000.00513.59
7.3.310.0000.00816.68
7.3.300.0000.00716.43
7.3.290.0090.01216.61
7.3.280.0100.01116.55
7.3.270.0060.01017.40
7.3.260.0060.01316.74
7.3.250.0110.00716.73
7.3.240.0130.00316.81
7.3.230.0100.00616.54
7.3.210.0060.01216.63
7.3.200.0210.00319.39
7.3.190.0110.00816.54
7.3.180.0090.00616.59
7.3.170.0060.01516.73
7.3.160.0060.01716.66
7.3.130.0060.00815.14
7.3.120.0090.00615.04
7.3.110.0080.01114.83
7.3.100.0120.00315.01
7.3.90.0090.00714.72
7.3.80.0030.00914.99
7.3.70.0120.00314.99
7.3.60.0050.00915.12
7.3.50.0050.01114.97
7.3.40.0090.00414.92
7.3.30.0030.00914.98
7.3.20.0020.01316.77
7.3.10.0080.00516.69
7.3.00.0050.01016.91
7.2.330.0160.00416.91
7.2.320.0120.01216.81
7.2.310.0170.00017.03
7.2.300.0090.00917.14
7.2.290.0100.00716.99
7.2.260.0030.01415.22
7.2.250.0080.00815.31
7.2.240.0110.00315.09
7.2.230.0140.00415.32
7.2.220.0070.00615.46
7.2.210.0040.01115.20
7.2.200.0070.00415.20
7.2.190.0050.01115.26
7.2.180.0070.00815.29
7.2.170.0050.01015.12
7.2.160.0050.00815.38
7.2.150.0060.01217.19
7.2.140.0070.00517.17
7.2.130.0070.00617.05
7.2.120.0060.00917.12
7.2.110.0070.01017.00
7.2.100.0060.00617.21
7.2.90.0040.01217.07
7.2.80.0070.00717.15
7.2.70.0070.00517.02
7.2.60.0050.01016.98
7.2.50.0070.00717.12
7.2.40.0070.00417.08
7.2.30.0050.01017.24
7.2.20.0060.00617.01
7.2.10.0060.01017.05
7.2.00.0050.00817.96
7.1.330.0040.01015.98
7.1.320.0090.00515.95
7.1.310.0050.01015.88
7.1.300.0080.00616.04
7.1.290.0060.00815.62
7.1.280.0070.00915.84
7.1.270.0030.01015.81
7.1.260.0040.00816.10
7.1.250.0070.00715.90
7.1.240.0090.00915.80
7.1.230.0060.00816.00
7.1.220.0100.00315.98
7.1.210.0070.00915.93
7.1.200.0070.00915.99
7.1.190.0060.00415.95
7.1.180.0060.00715.96
7.1.170.0060.00316.08
7.1.160.0090.00215.85
7.1.150.0030.01215.90
7.1.140.0040.00715.95
7.1.130.0040.01016.03
7.1.120.0040.00816.07
7.1.110.0060.00615.88
7.1.100.0090.00616.72
7.1.90.0020.01116.05
7.1.80.0000.00915.88
7.1.70.0060.00616.44
7.1.60.0070.00716.98
7.1.50.0090.00516.26
7.1.40.0060.00815.82
7.1.30.0080.00815.82
7.1.20.0030.01215.89
7.1.10.0070.00816.02
7.1.00.0030.03218.04
7.0.330.0030.01115.30
7.0.320.0090.00215.51
7.0.310.0050.00815.60
7.0.300.0090.00315.60
7.0.290.0080.00715.37
7.0.280.0040.00715.56
7.0.270.0080.00515.58
7.0.260.0030.00715.55
7.0.250.0050.00915.50
7.0.240.0070.00615.67
7.0.230.0060.00615.56
7.0.220.0070.00615.46
7.0.210.0050.00915.60
7.0.200.0050.00716.01
7.0.190.0040.00715.62
7.0.180.0060.00515.61
7.0.170.0030.00815.54
7.0.160.0030.00815.55
7.0.150.0070.00815.53
7.0.140.0100.02717.74
7.0.130.0080.00515.66
7.0.120.0040.00815.59
7.0.110.0020.01115.42
7.0.100.0060.02517.12
7.0.90.0100.03017.10
7.0.80.0090.02716.97
7.0.70.0090.02817.07
7.0.60.0040.02217.05
7.0.50.0100.01917.10
7.0.40.0040.02415.70
7.0.30.0070.01915.80
7.0.20.0010.02515.81
7.0.10.0070.01815.68
7.0.00.0060.01815.66
5.6.400.0100.00414.65
5.6.390.0090.00514.82
5.6.380.0070.00714.62
5.6.370.0050.01114.70
5.6.360.0050.00514.75
5.6.350.0080.00414.37
5.6.340.0050.01014.65
5.6.330.0060.00714.62
5.6.320.0040.00714.44
5.6.310.0040.00714.60
5.6.300.0020.01014.65
5.6.290.0050.00714.43
5.6.280.0060.02916.85
5.6.270.0060.01014.80
5.6.260.0030.01214.59
5.6.250.0060.01716.60
5.6.240.0110.02716.69
5.6.230.0080.03016.70
5.6.220.0060.02916.49
5.6.210.0100.01816.57
5.6.200.0090.03216.88
5.6.190.0040.02116.76
5.6.180.0080.01916.54
5.6.170.0040.02116.61
5.6.160.0040.02016.71
5.6.150.0080.01616.63
5.6.140.0040.02316.67
5.6.130.0040.02016.70
5.6.120.0080.01516.67
5.6.110.0010.02516.81
5.6.100.0050.01816.66
5.6.90.0070.01816.57
5.6.80.0030.02116.42
5.6.70.0030.02116.29
5.6.60.0040.01916.39
5.6.50.0040.01816.55
5.6.40.0090.01616.58
5.6.30.0050.02116.40
5.6.20.0020.02216.51
5.6.10.0080.02216.48
5.6.00.0090.01516.43
5.5.380.0050.01916.50
5.5.370.0070.02716.50
5.5.360.0060.02916.48
5.5.350.0090.03116.40
5.5.340.0120.01416.75
5.5.330.0060.02016.69
5.5.320.0080.01916.51
5.5.310.0060.02016.52
5.5.300.0050.02516.66
5.5.290.0070.01816.70
5.5.280.0060.02016.68
5.5.270.0100.01416.56
5.5.260.0060.01716.45
5.5.250.0040.01916.59
5.5.240.0050.01916.28
5.5.230.0040.01816.35
5.5.220.0030.01916.46
5.5.210.0090.01916.44
5.5.200.0070.01816.24
5.5.190.0090.01316.32
5.5.180.0080.01616.42
5.5.170.0070.00714.53
5.5.160.0030.02316.36
5.5.150.0020.01916.33
5.5.140.0090.01516.26
5.5.130.0070.01816.38
5.5.120.0070.02816.35
5.5.110.0060.01816.12
5.5.100.0070.01716.32
5.5.90.0040.02116.32
5.5.80.0040.02016.45
5.5.70.0110.02616.37
5.5.60.0060.02116.38
5.5.50.0030.01816.23
5.5.40.0060.02916.19
5.5.30.0080.02016.11
5.5.20.0090.02516.00
5.5.10.0040.02516.27
5.5.00.0060.03116.20
5.4.450.0040.02614.54
5.4.440.0030.01814.54
5.4.430.0010.02014.48
5.4.420.0030.01914.55
5.4.410.0050.01914.51
5.4.400.0040.01514.43
5.4.390.0010.02414.42
5.4.380.0040.02514.39
5.4.370.0060.01714.44
5.4.360.0050.01814.44
5.4.350.0080.01314.28
5.4.340.0030.02014.36
5.4.330.0020.00812.24
5.4.320.0030.01814.47
5.4.310.0050.01314.40
5.4.300.0020.01814.39
5.4.290.0040.02314.48
5.4.280.0040.02614.45
5.4.270.0060.01514.56
5.4.260.0040.01814.44
5.4.250.0030.01814.53
5.4.240.0080.01214.52
5.4.230.0070.02614.36
5.4.220.0040.03214.44
5.4.210.0040.01914.31
5.4.200.0100.02714.37
5.4.190.0070.02314.21
5.4.180.0060.02214.32
5.4.170.0030.03214.41
5.4.160.0010.03114.36
5.4.150.0040.03114.35
5.4.140.0070.02613.49
5.4.130.0020.02213.47
5.4.120.0010.03013.47
5.4.110.0060.02313.56
5.4.100.0040.01913.62
5.4.90.0060.02913.57
5.4.80.0050.02613.61
5.4.70.0060.02513.56
5.4.60.0020.02513.62
5.4.50.0050.01913.56
5.4.40.0040.01813.54
5.4.30.0040.02013.55
5.4.20.0050.01713.60
5.4.10.0070.02213.50
5.4.00.0070.02513.43
5.3.290.0020.01912.86
5.3.280.0040.01512.85
5.3.270.0020.03012.79
5.3.260.0060.02812.86
5.3.250.0080.03012.77
5.3.240.0070.02812.71
5.3.230.0070.02612.84
5.3.220.0060.02912.68
5.3.210.0030.02612.76
5.3.200.0060.02112.74
5.3.190.0080.02512.82
5.3.180.0050.03112.77
5.3.170.0080.02512.88
5.3.160.0070.02712.87
5.3.150.0060.02812.89
5.3.140.0030.03012.76
5.3.130.0070.02612.80
5.3.120.0050.02712.85
5.3.110.0070.02312.80
5.3.100.0040.02212.69
5.3.90.0050.02412.63
5.3.80.0070.02512.64
5.3.70.0070.01612.61
5.3.60.0060.02712.53
5.3.50.0070.02712.64
5.3.40.0090.02512.56
5.3.30.0120.01712.59
5.3.20.0050.02212.47
5.3.10.0080.02512.35
5.3.00.0050.02912.43
5.2.170.0070.06011.21
5.2.160.0030.06011.29
5.2.150.0070.06011.04
5.2.140.0100.05711.16
5.2.130.0030.04710.99
5.2.120.0030.05011.21
5.2.110.0070.05711.02
5.2.100.0130.03711.13
5.2.90.0130.05311.10
5.2.80.0000.05311.19
5.2.70.0000.06711.16
5.2.60.0070.05710.96
5.2.50.0030.04011.15
5.2.40.0100.06010.93
5.2.30.0030.05010.98
5.2.20.0030.03710.98
5.2.10.0070.05310.92
5.2.00.0130.05710.64
5.1.60.0030.05710.08
5.1.50.0030.05010.01
5.1.40.0000.0539.83
5.1.30.0130.05010.36
5.1.20.0100.05010.38
5.1.10.0000.03010.07
5.1.00.0070.03310.19
5.0.50.0000.0508.61
5.0.40.0000.0238.41
5.0.30.0030.0338.24
5.0.20.0030.0278.28
5.0.10.0000.0478.18
5.0.00.0070.0538.24
4.4.90.0100.0106.66
4.4.80.0000.0436.66
4.4.70.0030.0236.66
4.4.60.0070.0406.66
4.4.50.0030.0336.66
4.4.40.0000.0606.66
4.4.30.0030.0376.66
4.4.20.0000.0376.66
4.4.10.0070.0336.66
4.4.00.0030.0276.66
4.3.110.0030.0376.66
4.3.100.0070.0306.66
4.3.90.0000.0206.66
4.3.80.0000.0306.66
4.3.70.0070.0306.66
4.3.60.0100.0236.66
4.3.50.0030.0306.66
4.3.40.0000.0406.66
4.3.30.0000.0376.66
4.3.20.0000.0236.66
4.3.10.0030.0336.66
4.3.00.0000.0376.66

preferences:
44.85 ms | 401 KiB | 5 Q