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 ('al5data' !== $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.40.0130.00718.53
8.3.30.0040.01118.84
8.3.20.0090.00018.74
8.3.10.0050.00323.73
8.3.00.0040.00420.77
8.2.170.0150.00622.96
8.2.160.0070.01021.20
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0000.00722.21
8.2.120.0040.00426.35
8.2.110.0060.00320.93
8.2.100.0080.00417.97
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0080.00018.04
8.2.50.0050.00318.10
8.2.40.0040.00422.18
8.2.30.0000.00719.26
8.2.20.0040.00417.63
8.2.10.0040.00418.00
8.2.00.0040.00418.03
8.1.270.0000.00823.79
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00321.30
8.1.230.0000.01117.42
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0060.00617.38
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0100.00018.55
8.1.160.0040.00422.00
8.1.150.0040.00418.89
8.1.140.0000.00719.59
8.1.130.0040.00417.74
8.1.120.0080.00017.52
8.1.110.0070.00017.39
8.1.100.0000.00717.49
8.1.90.0050.00317.44
8.1.80.0040.00417.34
8.1.70.0040.00417.43
8.1.60.0060.00617.42
8.1.50.0040.00417.56
8.1.40.0000.00717.45
8.1.30.0000.00817.63
8.1.20.0070.00017.55
8.1.10.0070.00017.48
8.1.00.0000.00817.53
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.48
8.0.270.0030.00317.37
8.0.260.0000.00717.14
8.0.250.0000.00717.01
8.0.240.0000.00616.92
8.0.230.0000.00716.96
8.0.220.0000.00716.85
8.0.210.0070.00016.95
8.0.200.0030.00316.96
8.0.190.0040.00416.93
8.0.180.0000.00816.89
8.0.170.0030.00516.91
8.0.160.0030.00516.90
8.0.150.0000.00816.97
8.0.140.0030.00316.80
8.0.130.0000.00513.38
8.0.120.0050.00316.99
8.0.110.0050.00216.85
8.0.100.0040.00416.90
8.0.90.0040.00416.95
8.0.80.0100.00717.02
8.0.70.0040.00416.85
8.0.60.0030.00316.90
8.0.50.0080.00016.84
8.0.30.0080.01017.00
8.0.20.0120.00717.40
8.0.10.0000.00816.88
8.0.00.0070.01416.99
7.4.330.0000.00615.08
7.4.320.0000.00616.63
7.4.300.0030.00316.61
7.4.290.0000.00716.41
7.4.280.0000.00716.57
7.4.270.0030.00316.49
7.4.260.0000.00716.58
7.4.250.0000.00716.42
7.4.240.0070.00016.67
7.4.230.0070.00016.71
7.4.220.0100.00716.47
7.4.210.0060.00916.54
7.4.200.0030.00316.43
7.4.160.0060.00916.50
7.4.150.0070.01017.40
7.4.140.0110.00617.86
7.4.130.0080.01016.61
7.4.120.0050.01216.46
7.4.110.0120.01216.76
7.4.100.0140.00316.52
7.4.90.0100.00716.45
7.4.80.0090.01219.39
7.4.70.0130.00316.71
7.4.60.0100.00716.40
7.4.50.0060.00616.45
7.4.40.0100.00716.44
7.4.30.0030.01616.58
7.4.10.0100.00714.93
7.4.00.0080.00914.59
7.3.330.0000.00513.20
7.3.320.0000.00713.18
7.3.310.0070.00016.34
7.3.300.0000.00716.30
7.3.290.0020.01216.30
7.3.280.0070.00916.34
7.3.270.0060.00917.40
7.3.260.0100.00816.52
7.3.250.0090.01016.48
7.3.240.0090.00716.53
7.3.230.0060.01216.39
7.3.210.0090.00916.54
7.3.200.0100.01016.43
7.3.190.0100.00616.28
7.3.180.0220.00016.52
7.3.170.0110.00616.43
7.3.160.0090.00916.27
7.3.130.0070.01314.79
7.3.120.0040.01414.72
7.3.110.0090.00914.76
7.3.100.0030.01014.96
7.3.90.0030.01014.80
7.3.80.0040.01115.17
7.3.70.0110.00714.66
7.3.60.0120.00614.75
7.3.50.0090.00414.69
7.3.40.0080.00614.84
7.3.30.0000.01814.88
7.3.20.0080.00316.75
7.3.10.0110.00416.49
7.3.00.0070.00416.41
7.2.330.0040.01616.73
7.2.320.0100.00716.54
7.2.310.0130.00916.37
7.2.300.0090.01216.80
7.2.290.0080.01616.48
7.2.260.0000.01915.04
7.2.250.0110.00714.95
7.2.240.0040.00815.01
7.2.230.0120.00314.96
7.2.220.0050.00515.11
7.2.210.0040.01115.24
7.2.200.0070.00414.96
7.2.190.0040.00715.06
7.2.180.0070.00715.07
7.2.170.0120.00315.07
7.2.160.0030.00914.93
7.2.150.0060.00616.71
7.2.140.0000.01416.86
7.2.130.0070.00316.86
7.2.120.0080.00316.63
7.2.110.0070.00716.82
7.2.100.0060.00916.89
7.2.90.0030.01216.68
7.2.80.0030.01217.02
7.2.70.0060.00617.03
7.2.60.0040.00716.76
7.2.50.0040.00716.74
7.2.40.0040.01116.90
7.2.30.0000.00816.84
7.2.20.0000.01316.94
7.2.10.0080.00416.95
7.2.00.0100.00717.83
7.1.330.0030.01215.81
7.1.320.0060.01015.68
7.1.310.0090.00315.84
7.1.300.0100.00615.39
7.1.290.0090.00615.62
7.1.280.0050.00515.67
7.1.270.0030.00615.35
7.1.260.0070.00715.90
7.1.250.0090.00015.71
7.1.240.0070.00415.78
7.1.230.0030.00915.81
7.1.220.0060.00315.67
7.1.210.0060.00615.63
7.1.200.0030.00715.67
7.1.190.0070.00715.74
7.1.180.0100.00315.42
7.1.170.0070.01015.75
7.1.160.0040.00415.65
7.1.150.0000.01115.70
7.1.140.0060.00615.48
7.1.130.0060.00615.46
7.1.120.0110.00415.63
7.1.110.0070.00715.61
7.1.100.0030.00915.86
7.1.90.0060.00615.82
7.1.80.0000.01415.68
7.1.70.0030.00916.45
7.1.60.0060.00816.44
7.1.50.0030.00916.31
7.1.40.0000.01015.98
7.1.30.0000.01015.75
7.1.20.0030.00915.49
7.1.10.0060.00615.64
7.1.00.0080.03818.89
7.0.330.0040.00815.29
7.0.320.0090.00615.39
7.0.310.0000.00815.14
7.0.300.0080.00315.08
7.0.290.0030.00715.35
7.0.280.0000.00715.34
7.0.270.0030.00915.23
7.0.260.0040.01115.32
7.0.250.0030.00915.43
7.0.240.0090.00615.10
7.0.230.0140.00015.30
7.0.220.0000.01215.47
7.0.210.0070.00315.50
7.0.200.0050.00815.80
7.0.190.0070.00715.27
7.0.180.0100.00415.05
7.0.170.0080.00015.41
7.0.160.0100.00315.32
7.0.150.0060.01015.43
7.0.140.0060.00315.14
7.0.130.0030.00615.37
7.0.120.0030.01215.60
7.0.110.0030.01315.18
7.0.100.0900.03817.75
7.0.90.0650.03517.65
7.0.80.0220.03517.72
7.0.70.0500.03017.69
7.0.60.0670.03517.60
7.0.50.0870.03817.87
7.0.40.0690.02916.89
7.0.30.0180.03816.98
7.0.20.0550.03016.92
7.0.10.0660.03116.73
7.0.00.0650.03616.83
5.6.400.0030.00614.40
5.6.390.0060.00614.35
5.6.380.0030.00814.17
5.6.370.0060.00614.23
5.6.360.0030.00914.29
5.6.350.0080.00014.32
5.6.340.0000.00914.27
5.6.330.0040.01214.18
5.6.320.0000.01214.54
5.6.310.0000.01014.27
5.6.300.0090.00313.90
5.6.290.0070.00714.38
5.6.280.0090.00614.09
5.6.270.0070.01014.24
5.6.260.0050.00514.26
5.6.250.0130.03217.48
5.6.240.0120.03517.51
5.6.230.0080.04317.38
5.6.220.0100.03017.48
5.6.210.0090.04417.51
5.6.200.0110.03617.74
5.6.190.0080.03417.60
5.6.180.0120.03317.57
5.6.170.0100.03517.74
5.6.160.0100.02917.71
5.6.150.0090.03317.66
5.6.140.0100.03317.82
5.6.130.0100.03517.74
5.6.120.0110.04417.71
5.6.110.0080.03717.72
5.6.100.0150.03417.60
5.6.90.0100.04017.71
5.6.80.0050.03417.27
5.6.70.0100.03017.30
5.6.60.0070.03417.21
5.6.50.0080.03517.45
5.6.40.0080.03317.35
5.6.30.0090.03017.48
5.6.20.0110.03617.27
5.6.10.0100.02917.29
5.6.00.0140.02817.37

preferences:
59.42 ms | 400 KiB | 5 Q