3v4l.org

run code in 300+ PHP versions simultaneously
<?php // In the beginning there are no Sundays counted yet $number_of_sundays = 0; // Make the following actions for all years of the twentieth century for ($current_year = 1900; $current_year <= 1999; $current_year++) { //Make the following actions for all months from January to December for ($current_month = 1; $current_month <= 12; $current_month++) { // Get Unix Timestamp of the current month and year on the first day of the month $current_date = mktime(0, 0, 0, $current_month, 01, $current_year); $get_day_of_week = date("D", $current_date); if ($get_day_of_week == "Sun") { echo 01.$current_month.$current_year."was a Sunday!"."\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)
5.4.260.0120.04112.37
5.4.250.0070.04512.37
5.4.240.0080.04712.37
5.4.230.0070.04312.37
5.4.220.0130.05412.37
5.4.210.0080.04412.37
5.4.200.0130.04612.37
5.4.190.0080.05112.36
5.4.180.0100.04712.36
5.4.170.0070.04912.37
5.4.160.0060.04712.37
5.4.150.0100.04212.36
5.4.140.0120.05312.05
5.4.130.0120.05012.03
5.4.120.0110.05012.00
5.4.110.0120.05512.00
5.4.100.0090.04212.00
5.4.90.0120.04611.99
5.4.80.0090.04511.99
5.4.70.0100.04111.99
5.4.60.0080.04211.98
5.4.50.0080.04211.99
5.4.40.0070.04111.97
5.4.30.0070.04111.97
5.4.20.0050.04211.97
5.4.10.0060.04311.97
5.4.00.0050.04611.47
5.3.280.0070.04812.71
5.3.270.0070.04712.72
5.3.260.0080.04212.72
5.3.250.0120.05512.72
5.3.240.0140.04812.72
5.3.230.0160.05312.71
5.3.220.0110.04812.68
5.3.210.0080.05312.68
5.3.200.0140.05812.68
5.3.190.0070.04712.68
5.3.180.0110.05112.67
5.3.170.0090.05012.67
5.3.160.0080.04712.68
5.3.150.0080.04312.67
5.3.140.0070.04412.66
5.3.130.0160.04212.66
5.3.120.0120.04112.66
5.3.110.0060.04612.66
5.3.100.0100.05312.12
5.3.90.0090.05012.08
5.3.80.0090.04312.08
5.3.70.0110.04612.08
5.3.60.0100.04412.06
5.3.50.0080.04712.00
5.3.40.0070.04412.00
5.3.30.0090.05211.94
5.3.20.0100.04911.71
5.3.10.0080.04411.67
5.3.00.0060.04711.66

preferences:
133.4 ms | 1394 KiB | 7 Q