3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_date = $this->input->post('start_date'); $filtered_students = $this->home_model->getFilterStudents(); $fil_std_count = $filtered_students->num_rows(); $filtered_student_ids = $this->home_model->getFilterStudentsIds(); $st_time = strtotime("09:00 am"); for ($i = 0; $i < $fil_std_count; $i++) { $end_time = date("H:i:s a", strtotime('+20 minutes', $st_time)); if (strtotime($end_time) > (strtotime("01:00 pm"))) { $st_time = strtotime("02:00 pm"); $end_time = date("H:i:s a", strtotime('+20 minutes', $st_time)); $filtered_students = $this->home_model->insert_appointment_schedule(date("H:i:s a", ($st_time)), $end_time, $filtered_student_ids[$i]->applicant_id, $start_date); $st_time = strtotime($end_time); } else if (strtotime($end_time) >= strtotime("04:00 pm")) { $start_date=date('Y-m-d', strtotime($start_date. ' + 1 days')); $st_time = strtotime("09:00 am"); $end_time = date("H:i:s a", strtotime('+20 minutes', $st_time)); $filtered_students = $this->home_model->insert_appointment_schedule(date("H:i:s a", ($st_time)), $end_time, $filtered_student_ids[$i]->applicant_id, $start_date); $st_time = strtotime($end_time); }

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.6.140.0100.08318.16
5.6.130.0100.06318.16
5.6.120.0130.07320.98
5.6.110.0030.04721.00
5.6.100.0130.08321.13
5.6.90.0070.07320.99
5.6.80.0000.07320.41
5.5.300.0170.04718.02
5.5.290.0200.04317.97
5.5.280.0170.03720.76
5.5.270.0070.07320.72
5.5.260.0070.09320.96
5.5.250.0200.07020.59
5.5.240.0030.07720.17
5.4.450.0670.06319.48
5.4.440.0700.05319.50
5.4.430.0730.05719.34
5.4.420.0900.06319.36
5.4.410.0630.05719.35
5.4.400.0570.05718.74
5.4.390.0600.05319.07
5.4.380.0670.05018.93
5.4.370.0600.05718.93
5.4.360.0700.04319.15
5.4.350.0600.05718.77
5.4.340.0630.05019.20
5.4.320.0670.05018.75
5.4.310.0500.06019.13
5.4.300.0570.05318.96
5.4.290.0700.05318.77
5.4.280.0770.04718.77
5.4.270.0630.06319.15
5.4.260.0630.05319.15
5.4.250.0630.04718.76
5.4.240.0770.06019.17
5.4.230.0700.04719.07
5.4.220.0500.07018.82
5.4.210.0600.05719.21
5.4.200.0670.06018.96
5.4.190.0600.05718.92
5.4.180.0670.05719.09
5.4.170.0670.04719.16
5.4.160.0770.04018.72
5.4.150.0600.05718.91
5.4.140.0600.05716.24
5.4.130.0630.05316.28
5.4.120.0800.06316.28
5.4.110.0700.05016.40
5.4.100.0730.03716.38
5.4.90.0630.04716.45
5.4.80.0670.06716.27
5.4.70.0070.04716.46
5.4.60.0270.06316.21
5.4.50.0030.07316.36
5.4.40.0300.03316.18
5.4.30.0100.06016.36
5.4.20.0030.07316.36
5.4.10.0230.04716.43

preferences:
145.08 ms | 1394 KiB | 7 Q