3v4l.org

run code in 300+ PHP versions simultaneously
<section> <form id="yearForm" name="yearForm" method="post" action=""> <label for="select_year">Select the year: </label> <?php // Sets the default year to be the current year. $current_year = date('Y'); // Year to start available options. $earliest_year = ($current_year - 5); // Set your latest year you want in the range. $latest_year = 2050; echo '<select>'; // Loops over each int[year] from current year, back to the $earliest_year [1950] foreach ( range( $earliest_year, $latest_year ) as $i ) { // Echos the option with the next year in range. echo '<option value="'.$i.'" '.($i == $current_year ? ' selected="selected"' : '').'>'.$i.'</option>'; } echo '</select>'; ?> </form> <br /> <br /> <form id="monthForm" name="monthForm" method="post" action=""> <label for="month">Select the month: </label> <!-- <input type=hidden id="month" name=month>--> <select id="month" name="month" > <option value='01'>January</option> <option value='02'>February</option> <option value='03'>March</option> <option value='04'>April</option> <option value='05'>May</option> <option value='06'>June</option> <option value='07'>July</option> <option value='08'>August</option> <option value='09'>September</option> <option value='10'>October</option> <option value='11'>November</option> <option value='12'>December</option> </select> <br /> <br /> <label for="whole_year">Show whole year: </label> <input type="checkbox" id="whole_year" name="whole_year" > <br /> <br /> <input type="submit" class=inline name="submitButton" id="submitButton" value="Submit" /> </form>

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.0170.00316.75
8.3.60.0090.00618.45
8.3.50.0110.00318.21
8.3.40.0070.00718.59
8.3.30.0090.00918.56
8.3.20.0000.00721.91
8.3.10.0080.00818.85
8.3.00.0070.00319.38
8.2.190.0150.00016.58
8.2.180.0120.00916.38
8.2.170.0100.00722.96
8.2.160.0100.00319.46
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0140.00026.16
8.2.120.0040.00419.79
8.2.110.0060.00321.11
8.2.100.0080.00417.84
8.2.90.0000.00817.84
8.2.80.0040.00418.05
8.2.70.0030.00617.93
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0030.00619.34
8.2.30.0070.00019.23
8.2.20.0030.00518.01
8.2.10.0050.00319.44
8.2.00.0080.00417.97
8.1.280.0070.00725.92
8.1.270.0000.00920.14
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00021.31
8.1.230.0070.00420.88
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0030.00617.47
8.1.190.0060.00317.35
8.1.180.0080.00018.10
8.1.170.0060.00318.73
8.1.160.0020.00519.00
8.1.150.0050.00218.87
8.1.140.0040.00420.31
8.1.130.0080.00318.94
8.1.120.0070.00517.59
8.1.110.0060.00717.60
8.1.100.0090.00417.51
8.1.90.0110.00217.66
8.1.80.0090.00417.63
8.1.70.0090.00517.65
8.1.60.0110.00317.64
8.1.50.0090.00417.63
8.1.40.0100.00417.62
8.1.30.0150.00117.69
8.1.20.0090.00617.69
8.1.10.0070.00717.53
8.1.00.0060.00817.58
8.0.300.0000.00719.79
8.0.290.0050.00316.75
8.0.280.0000.00718.53
8.0.270.0000.00717.32
8.0.260.0050.00618.49
8.0.250.0070.00417.09
8.0.240.0080.00417.04
8.0.230.0090.00317.10
8.0.220.0090.00217.00
8.0.210.0080.00517.01
8.0.200.0060.00517.05
8.0.190.0080.00417.02
8.0.180.0100.00116.98
8.0.170.0070.00616.95
8.0.160.0040.00716.95
8.0.150.0070.00516.93
8.0.140.0080.00316.96
8.0.130.0060.00515.15
8.0.120.0080.00416.91
8.0.110.0060.00516.97
8.0.100.0080.00316.95
8.0.90.0070.00416.95
8.0.80.0090.00616.97
8.0.70.0110.00016.93
8.0.60.0090.00316.86
8.0.50.0080.00317.00
8.0.30.0110.00717.14
8.0.20.0100.00917.00
8.0.10.0080.00417.08
8.0.00.0100.00816.97
7.4.330.0050.00515.67
7.4.320.0100.00216.54
7.4.300.0080.00316.50
7.4.290.0060.00616.48
7.4.280.0060.00616.62
7.4.270.0070.00516.61
7.4.260.0080.00516.63
7.4.250.0110.00216.56
7.4.240.0110.00216.54
7.4.230.0100.00216.52
7.4.220.0070.00416.63
7.4.210.0100.00716.60
7.4.200.0050.00516.43
7.4.190.0090.00516.49
7.4.180.0080.00616.63
7.4.160.0070.01116.53
7.4.150.0090.00616.52
7.4.140.0140.00016.57
7.4.130.0120.00316.46
7.4.120.0140.00216.61
7.4.110.0140.00516.42
7.4.100.0080.00816.57
7.4.90.0110.00416.41
7.4.80.0070.00917.93
7.4.70.0110.00516.65
7.4.60.0130.00216.50
7.4.50.0110.00216.44
7.4.40.0120.00416.43
7.4.30.0090.00516.44
7.4.20.0100.00316.50
7.4.10.0100.00316.46
7.4.00.0110.00415.86
7.3.330.0080.00114.67
7.3.320.0030.00714.82
7.3.310.0070.00416.19
7.3.300.0070.00416.31
7.3.290.0060.00516.19
7.3.280.0060.01016.36
7.3.270.0150.00016.10
7.3.260.0090.01116.39
7.3.250.0110.00416.41
7.3.240.0100.00816.58
7.3.230.0050.01016.33
7.3.220.0140.00016.11
7.3.210.0110.00416.29
7.3.200.0080.00716.29
7.3.190.0050.01316.42
7.3.180.0110.00616.32
7.3.170.0090.00716.42
7.3.160.0070.00816.47
7.3.150.0100.00516.21
7.3.140.0150.00016.36
7.3.130.0100.00316.21
7.3.120.0070.00716.20
7.3.110.0040.01116.14
7.3.100.0120.00216.16
7.3.90.0100.00316.51
7.3.80.0150.00016.08
7.3.70.0080.00616.42
7.3.60.0070.00716.33
7.3.50.0110.00416.34
7.3.40.0100.00316.39
7.3.30.0100.00416.38
7.3.20.0340.00316.53
7.3.10.0420.00216.54
7.3.00.0290.00716.50
7.2.340.0140.00016.64
7.2.330.0070.00916.71
7.2.320.0080.00816.77
7.2.310.0070.00916.74
7.2.300.0060.01116.68
7.2.290.0110.00516.72
7.2.280.0050.00916.47
7.2.270.0090.00516.65
7.2.260.0120.00316.66
7.2.250.0070.00716.43
7.2.240.0080.00616.42
7.2.230.0100.00516.40
7.2.220.0070.00716.70
7.2.210.0090.00516.50
7.2.200.0110.00416.69
7.2.190.0120.00316.65
7.2.180.0150.00016.43
7.2.170.0100.00516.61
7.2.160.0140.00016.49
7.2.150.0350.00516.69
7.2.140.0340.00016.87
7.2.130.0450.00516.86
7.2.120.0760.00316.87
7.2.110.0370.00216.73
7.2.100.0400.00316.74
7.2.90.0450.00716.95
7.2.80.0490.00316.91
7.2.70.0430.00916.77
7.2.60.0520.00316.77
7.2.50.0400.00616.88
7.2.40.0400.00516.82
7.2.30.0390.00716.80
7.2.20.0530.00716.90
7.2.10.0480.00916.74
7.2.00.0350.00716.83
7.1.330.0110.00317.38
7.1.320.0150.00017.27
7.1.310.0100.00317.39
7.1.300.0140.00017.43
7.1.290.0110.00417.40
7.1.280.0070.00717.40
7.1.270.0070.00717.16
7.1.260.0090.00617.36
7.1.250.0380.00415.54
7.1.240.0130.00317.11
7.1.230.0150.00017.30
7.1.220.0160.00017.32
7.1.210.0090.00717.40
7.1.200.0120.00317.41
7.1.190.0110.00417.39
7.1.180.0090.00617.11
7.1.170.0150.00017.09
7.1.160.0150.00017.16
7.1.150.0110.00417.13
7.1.140.0150.00017.24
7.1.130.0000.01517.14
7.1.120.0110.00417.21
7.1.110.0150.00017.17
7.1.100.0150.00017.21
7.1.90.0110.00417.34
7.1.80.0120.00317.34
7.1.70.0060.00917.09
7.1.60.0090.00517.26
7.1.50.0150.00017.32
7.1.40.0080.00817.53
7.1.30.0070.00717.28
7.1.20.0110.00317.29
7.1.10.0130.00317.36
7.1.00.0160.00017.21

preferences:
28.75 ms | 401 KiB | 5 Q