3v4l.org

run code in 300+ PHP versions simultaneously
<?php $table_arr = array('al5data','al6data'); //if (empty($table_arr)) $table_arr[]=$this->table; //if (in_array('al5data',$table_arr)) $idfield = 'dataid'; // else $idfield = 'data_id'; //if (empty($id_arr)) $id_arr = $this->id_arr; $query =""; foreach ($table_arr AS $table) { $idfield = $this->getPriKey($table); if ($this->getTable() !== $table) $query .= " UNION "; $query .= "(SELECT `$idfield`, `pt_last_name`, `pt_first_name`, `start_date`, \"" . $table . "\" AS `table` FROM `" . $table . "`)"; } $query .= " ORDER BY STR_TO_DATE(`start_date`, '%m/%d/%Y') DESC, `$idfield` DESC LIMIT 0,100"; echo $query;

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.0110.00416.75
8.3.50.0090.00918.09
8.3.40.0100.00618.75
8.3.30.0000.01518.79
8.3.20.0080.00019.20
8.3.10.0080.00023.73
8.3.00.0070.00020.64
8.2.180.0120.00316.75
8.2.170.0110.00422.96
8.2.160.0060.01021.02
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0080.00022.26
8.2.120.0040.00426.35
8.2.110.0050.00522.07
8.2.100.0080.00417.97
8.2.90.0030.00619.21
8.2.80.0030.00717.97
8.2.70.0000.01017.63
8.2.60.0050.00317.93
8.2.50.0030.00518.10
8.2.40.0000.00720.48
8.2.30.0040.00419.28
8.2.20.0080.00017.63
8.2.10.0030.00518.18
8.2.00.0000.00718.11
8.1.280.0070.01425.92
8.1.270.0030.00523.96
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00920.65
8.1.230.0030.00717.46
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00717.35
8.1.190.0060.00317.22
8.1.180.0030.00518.10
8.1.170.0060.00318.64
8.1.160.0000.00722.02
8.1.150.0040.00418.84
8.1.140.0000.00719.49
8.1.130.0030.00317.62
8.1.120.0030.00317.48
8.1.110.0050.00217.45
8.1.100.0070.00017.45
8.1.90.0060.00317.46
8.1.80.0080.00017.44
8.1.70.0040.00417.45
8.1.60.0030.00717.50
8.1.50.0030.00617.57
8.1.40.0040.00417.53
8.1.30.0040.00417.55
8.1.20.0030.00617.49
8.1.10.0000.00717.61
8.1.00.0030.00617.47
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0080.00018.50
8.0.270.0000.00717.25
8.0.260.0030.00317.26
8.0.250.0080.00017.01
8.0.240.0000.00617.06
8.0.230.0000.00716.98
8.0.220.0030.00316.96
8.0.210.0030.00316.91
8.0.200.0000.00616.94
8.0.190.0050.00217.05
8.0.180.0000.00717.03
8.0.170.0070.00016.91
8.0.160.0030.00517.02
8.0.150.0070.00016.86
8.0.140.0040.00416.88
8.0.130.0050.00413.39
8.0.120.0000.00816.96
8.0.110.0040.00416.92
8.0.100.0080.00016.90
8.0.90.0050.00216.89
8.0.80.0060.00916.90
8.0.70.0040.00417.01
8.0.60.0080.00016.77
8.0.50.0040.00416.86
8.0.30.0100.00717.07
8.0.20.0130.00617.40
8.0.10.0050.00316.93
8.0.00.0160.00616.96
7.4.330.0000.00615.08
7.4.320.0060.00016.50
7.4.300.0060.00316.61
7.4.290.0000.00716.50
7.4.280.0000.00716.54
7.4.270.0000.00616.50
7.4.260.0000.00716.64
7.4.250.0000.00716.46
7.4.240.0000.00816.62
7.4.230.0000.00816.70
7.4.220.0090.01516.58
7.4.210.0000.01416.54
7.4.200.0000.00816.68
7.4.160.0110.00516.37
7.4.150.0000.01717.40
7.4.140.0100.00617.86
7.4.130.0130.00616.58
7.4.120.0110.00516.56
7.4.110.0150.01116.50
7.4.100.0090.00916.63
7.4.90.0100.00716.58
7.4.80.0090.01219.39
7.4.70.0130.00316.40
7.4.60.0060.01216.52
7.4.50.0090.00716.61
7.4.40.0100.00716.38
7.4.30.0080.00916.35
7.4.00.0040.01414.92
7.3.330.0040.00313.22
7.3.320.0060.00013.08
7.3.310.0050.00216.21
7.3.300.0000.00616.23
7.3.290.0040.01216.32
7.3.280.0080.01116.28
7.3.270.0030.01317.40
7.3.260.0090.00916.44
7.3.250.0070.01116.38
7.3.240.0100.00716.32
7.3.230.0160.00016.46
7.3.210.0080.00816.61
7.3.200.0070.01016.36
7.3.190.0050.01116.36
7.3.180.0160.00616.33
7.3.170.0060.01216.38
7.3.160.0090.00916.50
7.3.10.0150.00016.71
7.3.00.0070.00716.60
7.2.330.0110.00716.34
7.2.320.0080.00816.50
7.2.310.0070.01016.56
7.2.300.0110.01016.62
7.2.290.0110.00716.50
7.2.130.0100.00316.92
7.2.120.0110.00416.98
7.2.110.0090.00316.82
7.2.100.0030.01016.87
7.2.90.0030.00916.85
7.2.80.0030.00816.49
7.2.70.0130.00016.63
7.2.60.0090.00316.77
7.2.50.0070.00816.83
7.2.40.0060.00916.85
7.2.30.0000.01016.80
7.2.20.0000.01416.76
7.2.10.0050.00516.86
7.2.00.0120.00217.77
7.1.250.0000.00915.53
7.1.200.0070.00715.41
7.1.70.0110.00017.18
7.1.60.0000.01116.89
7.1.50.0050.00516.95
7.1.00.0070.07322.32
7.0.200.0000.01716.72
7.0.100.2170.06019.99
7.0.90.1330.05320.00
7.0.80.0970.04020.12
7.0.70.0270.04019.96
7.0.60.0030.06020.02
7.0.50.1200.06020.25
7.0.40.1000.06320.25
7.0.30.1770.05320.45
7.0.20.1070.05320.45
7.0.10.0930.06020.34
7.0.00.1300.05020.38
5.6.250.0130.05320.65
5.6.240.0170.05320.81
5.6.230.0170.05020.71
5.6.220.0070.05720.80
5.6.210.0170.04720.68
5.6.200.0070.06721.11
5.6.190.0200.04721.08
5.6.180.0130.05321.09
5.6.170.0200.04721.08
5.6.160.0270.04321.10
5.6.150.0100.05721.02
5.6.140.0230.05321.18
5.6.130.0170.05321.02
5.6.120.0170.05321.09
5.6.110.0230.05721.00
5.6.100.0170.05321.11
5.6.90.0070.06021.15
5.6.80.0230.04320.48
5.6.70.0130.05320.45
5.6.60.0200.05020.52
5.6.50.0130.06020.40
5.6.40.0200.05020.53
5.6.30.0200.04320.46
5.6.20.0100.06020.52
5.6.10.0300.03720.55
5.6.00.0130.06020.43

preferences:
65.22 ms | 401 KiB | 5 Q