3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once('config.php'); $table = 'ILRL'; $requestedWO = $_GET['wo']; // Grab last 20 workorders $query = $bd->prepare("SELECT DISTINCT workorder FROM $table Order By date_time DESC LIMIT 20"); try { if(!$query->execute()) die(print_r($bd->errorInfo())); $woList = $query->fetchAll(PDO::FETCH_OBJ); } catch (Exception $e) { echo $e->getMessage(); } // wo results if( empty($requestedWO) ) $requestedWO = $woList[0]->workorder; $tableheader = false; $query = $bd->prepare("SELECT * FROM $table WHERE workorder=$requestedWO ORDER BY date_time DESC LIMIT 1000"); try { if(!$query->execute()) die(print_r($bd->errorInfo())); echo "<table class='striped responsive-table'>"; while($row = $query->fetch(PDO::FETCH_ASSOC)) { if($tableheader == false) { echo '<thead><tr>'; foreach($row as $key=>$value) { echo "<th>{$key}</th>"; } echo '</tr></thead><tbody>'; $tableheader = true; } echo "<tr>"; foreach($row as $value) { echo "<td>{$value}</td>"; } echo "</tr>"; } echo "</tbody></table>"; } catch (Exception $e) { echo $e->getMessage(); } ?> <script type="text/javascript"> var woListFromSQL = <?php print(json_encode($woList)); ?>; </script>

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.0070.00716.75
8.3.50.0090.01221.20
8.3.40.0170.00318.88
8.3.30.0110.00418.79
8.3.20.0040.00420.21
8.3.10.0030.00523.51
8.3.00.0040.00423.56
8.2.180.0070.01418.43
8.2.170.0140.00022.96
8.2.160.0120.00320.35
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.48
8.2.120.0000.00826.35
8.2.110.0060.00322.13
8.2.100.0000.01118.04
8.2.90.0040.00419.05
8.2.80.0000.00918.04
8.2.70.0000.00917.60
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0040.00422.00
8.2.30.0040.00420.66
8.2.20.0040.00417.92
8.2.10.0040.00418.13
8.2.00.0040.00417.98
8.1.280.0110.00725.92
8.1.270.0080.00022.17
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0080.00023.81
8.1.230.0110.00019.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0060.00317.25
8.1.180.0060.00618.10
8.1.170.0000.00818.50
8.1.160.0040.00420.80
8.1.150.0040.00418.89
8.1.140.0040.00419.53
8.1.130.0030.00317.61
8.1.120.0040.00417.33
8.1.110.0000.00817.39
8.1.100.0040.00417.48
8.1.90.0040.00417.34
8.1.80.0040.00417.46
8.1.70.0000.00717.34
8.1.60.0020.00517.63
8.1.50.0030.00617.50
8.1.40.0040.00417.57
8.1.30.0000.00917.75
8.1.20.0000.00717.73
8.1.10.0040.00417.63
8.1.00.0080.00017.57
8.0.300.0000.00718.77
8.0.290.0050.00217.00
8.0.280.0070.00018.55
8.0.270.0020.00517.31
8.0.260.0000.00617.43
8.0.250.0030.00317.13
8.0.240.0060.00317.15
8.0.230.0000.00717.11
8.0.220.0040.00416.99
8.0.210.0030.00617.11
8.0.200.0000.00817.09
8.0.190.0060.00317.15
8.0.180.0040.00417.08
8.0.170.0050.00317.12
8.0.160.0000.00717.03
8.0.150.0030.00617.02
8.0.140.0040.00416.91
8.0.130.0060.00013.50
8.0.120.0040.00416.97
8.0.110.0000.00717.08
8.0.100.0000.00816.93
8.0.90.0000.00716.98
8.0.80.0060.01016.96
8.0.70.0070.00317.10
8.0.60.0030.00617.08
8.0.50.0000.00816.96
8.0.30.0150.00717.15
8.0.20.0200.01117.40
8.0.10.0000.00717.09
8.0.00.0120.00616.83
7.4.330.0030.00316.77
7.4.320.0000.00616.65
7.4.300.0060.00016.57
7.4.290.0030.00316.48
7.4.280.0050.00516.63
7.4.270.0070.00016.66
7.4.260.0030.00316.68
7.4.250.0040.00416.41
7.4.240.0040.00516.63
7.4.230.0070.00016.67
7.4.220.0090.01616.52
7.4.210.0060.00916.61
7.4.200.0000.00716.32
7.4.160.0050.01016.67
7.4.150.0100.01017.40
7.4.140.0090.00917.86
7.4.130.0120.00816.49
7.4.120.0070.01116.64
7.4.110.0140.01116.49
7.4.100.0060.01216.39
7.4.90.0180.00616.66
7.4.80.0100.00619.39
7.4.70.0000.01716.36
7.4.60.0080.00816.36
7.4.50.0090.00616.50
7.4.40.0120.00616.62
7.4.30.0100.01316.62
7.4.00.0100.00715.20
7.3.330.0030.00313.15
7.3.320.0000.00513.14
7.3.310.0040.00416.25
7.3.300.0040.00416.29
7.3.290.0070.00016.21
7.3.280.0100.00916.35
7.3.270.0120.00817.40
7.3.260.0140.00316.42
7.3.250.0110.00916.36
7.3.240.0080.01216.34
7.3.230.0140.00316.39
7.3.210.0040.01516.53
7.3.200.0160.00019.39
7.3.190.0140.00416.33
7.3.180.0030.01316.39
7.3.170.0080.00816.53
7.3.160.0060.00916.46
7.2.330.0130.00416.45
7.2.320.0060.01216.63
7.2.310.0030.01316.30
7.2.300.0140.00316.29
7.2.290.0080.00816.52
7.1.200.0000.01315.78
7.1.100.0060.00317.71
7.1.70.0000.00816.97
7.1.60.0140.01019.20
7.1.50.0150.00916.95
7.1.00.0070.07322.41
7.0.200.0030.00516.60
7.0.90.0000.05319.95
7.0.80.0000.08020.00
7.0.70.0430.07719.95
7.0.60.0630.08320.10
7.0.50.0730.07320.30
7.0.40.0130.07020.14
7.0.30.0100.07020.23
7.0.20.0200.06720.09
7.0.10.0070.07019.95
7.0.00.0030.09320.16
5.6.280.0000.03721.08
5.6.240.0070.04320.55
5.6.230.0070.08320.61
5.6.220.0030.06720.66
5.6.210.0100.05020.61
5.6.200.0030.08721.10
5.6.190.0130.04721.05
5.6.180.0100.06320.95
5.6.170.0200.07020.95
5.6.160.0130.07721.06
5.6.150.0100.08320.95
5.6.140.0170.04321.03
5.6.130.0070.04320.89
5.6.120.0170.07720.97
5.6.110.0070.08021.08
5.6.100.0200.07320.95
5.6.90.0100.05321.07
5.6.80.0030.07720.51
5.6.70.0130.05320.47
5.6.60.0070.06720.48
5.6.50.0070.04320.36
5.6.40.0100.07320.45
5.6.30.0170.05320.54
5.6.20.0100.07020.38
5.6.10.0070.07320.39
5.6.00.0000.06020.46
5.5.380.0330.06020.39
5.5.370.0070.07020.55
5.5.360.0070.05020.57
5.5.350.0100.06020.44
5.5.340.0030.08320.89
5.5.330.0030.08320.92
5.5.320.0200.04020.86
5.5.310.0070.07720.79
5.5.300.0270.04320.82
5.5.290.0100.04020.66
5.5.280.0030.08320.90
5.5.270.0100.08720.92
5.5.260.0070.08320.73
5.5.250.0030.08720.73
5.5.240.0200.06320.26
5.5.230.0030.08720.20
5.5.220.0200.03020.28
5.5.210.0070.07020.29
5.5.200.0100.06320.01
5.5.190.0170.06320.24
5.5.180.0200.07320.23
5.5.160.0070.07320.23
5.5.150.0030.08020.23
5.5.140.0070.08020.19
5.5.130.0130.06320.13
5.5.120.0270.06020.25
5.5.110.0130.06320.19
5.5.100.0030.07720.11
5.5.90.0030.07720.13
5.5.80.0130.06320.06
5.5.70.0100.08720.10
5.5.60.0100.07020.16
5.5.50.0070.07320.07
5.5.40.0130.07320.16
5.5.30.0230.05720.05
5.5.20.0130.06720.07
5.5.10.0030.08320.12
5.5.00.0100.07719.97

preferences:
60.03 ms | 401 KiB | 5 Q