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.0040.01116.63
8.3.50.0060.01421.85
8.3.40.0070.01018.84
8.3.30.0090.00618.75
8.3.20.0050.00318.98
8.3.10.0040.00423.53
8.3.00.0040.00420.72
8.2.180.0080.00616.88
8.2.170.0140.00022.96
8.2.160.0060.00821.07
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00422.21
8.2.120.0080.00026.35
8.2.110.0060.00321.05
8.2.100.0070.00417.91
8.2.90.0060.00319.05
8.2.80.0110.00017.97
8.2.70.0090.00017.50
8.2.60.0050.00317.93
8.2.50.0030.00518.10
8.2.40.0060.00320.59
8.2.30.0050.00219.15
8.2.20.0000.00717.71
8.2.10.0070.00018.16
8.2.00.0050.00218.20
8.1.280.0110.01125.92
8.1.270.0040.00424.02
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00721.16
8.1.230.0070.00417.45
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0030.00617.35
8.1.190.0050.00317.10
8.1.180.0060.00318.10
8.1.170.0060.00318.52
8.1.160.0040.00422.05
8.1.150.0000.00718.91
8.1.140.0070.00019.55
8.1.130.0030.00317.61
8.1.120.0070.00017.46
8.1.110.0070.00017.41
8.1.100.0030.00317.40
8.1.90.0000.00817.34
8.1.80.0030.00317.37
8.1.70.0000.00817.45
8.1.60.0070.00417.56
8.1.50.0040.00417.53
8.1.40.0000.00717.52
8.1.30.0050.00317.71
8.1.20.0080.00017.69
8.1.10.0040.00417.63
8.1.00.0000.00717.42
8.0.300.0070.00018.77
8.0.290.0050.00316.61
8.0.280.0000.00718.34
8.0.270.0070.00017.15
8.0.260.0070.00017.23
8.0.250.0000.00817.06
8.0.240.0000.00716.89
8.0.230.0040.00417.05
8.0.220.0070.00016.96
8.0.210.0070.00016.90
8.0.200.0060.00016.85
8.0.190.0040.00416.98
8.0.180.0070.00016.91
8.0.170.0040.00416.95
8.0.160.0040.00417.00
8.0.150.0030.00516.91
8.0.140.0000.00716.91
8.0.130.0000.00513.29
8.0.120.0040.00416.80
8.0.110.0040.00416.82
8.0.100.0000.00716.84
8.0.90.0040.00416.95
8.0.80.0130.00316.88
8.0.70.0020.00516.95
8.0.60.0040.00417.00
8.0.50.0000.00816.97
8.0.30.0050.01117.04
8.0.20.0100.00817.40
8.0.10.0050.00217.16
8.0.00.0100.01316.68
7.4.330.0000.00615.08
7.4.320.0030.00316.55
7.4.300.0000.00616.50
7.4.290.0030.00316.57
7.4.280.0000.00816.66
7.4.270.0040.00416.52
7.4.260.0000.00716.41
7.4.250.0000.00716.50
7.4.240.0050.00216.53
7.4.230.0030.00316.43
7.4.220.0180.00616.45
7.4.210.0110.00616.49
7.4.200.0040.00416.44
7.4.160.0080.01116.61
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0080.00816.50
7.4.120.0130.00516.48
7.4.110.0030.01916.61
7.4.100.0100.00716.58
7.4.90.0100.00716.43
7.4.80.0080.00819.39
7.4.70.0070.01016.64
7.4.60.0030.01316.49
7.4.50.0100.00616.66
7.4.40.0080.00816.68
7.4.30.0090.00916.49
7.4.00.0100.00715.00
7.3.330.0000.00513.18
7.3.320.0020.00213.14
7.3.310.0070.00016.27
7.3.300.0060.00016.25
7.3.290.0060.01216.29
7.3.280.0070.01116.32
7.3.270.0040.01217.40
7.3.260.0110.01016.50
7.3.250.0110.00516.35
7.3.240.0080.01016.56
7.3.230.0100.01016.41
7.3.210.0070.01016.49
7.3.200.0140.00416.21
7.3.190.0090.00916.24
7.3.180.0080.01216.43
7.3.170.0100.00716.38
7.3.160.0070.01016.23
7.2.330.0060.01216.65
7.2.320.0120.00916.65
7.2.310.0040.01416.33
7.2.300.0090.01316.33
7.2.290.0040.01816.65
7.2.60.0070.01017.02
7.2.50.0070.00816.63
7.2.00.0110.01418.95
7.1.200.0110.00315.50
7.1.70.0000.01016.82
7.1.60.0030.00916.80
7.1.50.0060.00616.63
7.1.00.0030.07322.43
7.0.200.0040.01216.87
7.0.100.1200.06019.95
7.0.90.0130.06719.92
7.0.80.0130.06720.05
7.0.70.0100.05720.12
7.0.60.0170.05320.00
7.0.50.0030.06720.39
7.0.40.0200.04720.35
7.0.30.0070.06720.37
7.0.20.0130.07020.32
7.0.10.0230.05020.34
7.0.00.0030.07320.18
5.6.250.0130.05020.64
5.6.240.0070.06020.68
5.6.230.0130.05720.67
5.6.220.0030.06320.75
5.6.210.0130.05720.86
5.6.200.0170.05321.07
5.6.190.0030.06321.09
5.6.180.0100.05721.18
5.6.170.0070.06721.15
5.6.160.0170.05321.17
5.6.150.0130.05321.08
5.6.140.0070.06021.08
5.6.130.0030.06721.09
5.6.120.0130.05721.02
5.6.110.0100.06021.10
5.6.100.0170.05321.05
5.6.90.0200.05021.14
5.6.80.0100.05020.55
5.6.70.0130.05720.47
5.6.60.0070.05720.54
5.6.50.0100.05320.39
5.6.40.0100.05320.45
5.6.30.0100.05720.41
5.6.20.0100.05320.37
5.6.10.0030.06020.43
5.6.00.0100.06020.44

preferences:
36.46 ms | 401 KiB | 5 Q