3v4l.org

run code in 500+ PHP versions simultaneously
<?php header("Content-type: application/json"); require_once "config/database.php"; $db = new database(); $mysqli = $db->connect(); $balai = mysqli_real_escape_string($mysqli, $_GET['balai']); if ($balai == 'bl-1') { $sql = "SELECT plan, actual FROM scurve1 ORDER BY id ASC"; } else if ($balai == 'bl-2') { $sql = "SELECT plan, actual FROM scurve2 ORDER BY id ASC"; } else if ($balai == 'bl-3') { $sql = "SELECT plan, actual FROM scurve3 ORDER BY id ASC"; } $hasil = array(); $result = $mysqli->query($sql); while ($data = $result->fetch_assoc()) { $hasil['data'][]=['name'=>'Plan', 'data' => $data['plan']]; $hasil['data'][]=['name'=>'Actual', 'data' => $data['actual']]; } print json_encode($hasil, JSON_NUMERIC_CHECK); $mysqli->close();

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.5.70.0050.00216.93
8.5.60.0110.00616.95
8.5.50.0110.00716.79
8.5.30.0100.00719.98
8.5.20.0090.01019.64
8.5.10.0130.00618.75
8.5.00.0110.01120.07
8.4.220.0040.00519.62
8.4.210.0130.00821.42
8.4.180.0150.00625.71
8.4.170.0110.01123.90
8.4.160.0150.00723.95
8.4.150.0070.00616.90
8.4.140.0130.00817.59
8.4.130.0130.00817.76
8.4.120.0080.01022.30
8.4.110.0090.01220.63
8.4.100.0160.00618.09
8.4.90.0150.00617.89
8.4.80.0050.00319.63
8.4.70.0140.00817.78
8.4.60.0120.00818.82
8.4.50.0140.00718.83
8.4.40.0100.01017.76
8.4.30.0160.00320.08
8.4.20.0070.01318.24
8.4.10.0000.01024.11
8.3.310.0110.00718.49
8.3.300.0090.01222.74
8.3.290.0120.00818.62
8.3.280.0140.00618.43
8.3.270.0100.01016.56
8.3.260.0120.00716.61
8.3.250.0140.00519.04
8.3.240.0080.01116.92
8.3.230.0120.00916.53
8.3.220.0110.00718.41
8.3.210.0100.00416.76
8.3.200.0040.00516.82
8.3.190.0040.00417.12
8.3.180.0120.00716.66
8.3.170.0090.01016.71
8.3.160.0030.00716.82
8.3.150.0130.00720.77
8.3.140.0000.00816.57
8.3.130.0060.00318.71
8.3.120.0070.01318.82
8.3.110.0080.00016.54
8.3.100.0000.00816.79
8.3.90.0040.00426.77
8.3.80.0100.00016.63
8.3.70.0140.00316.75
8.3.60.0130.00616.63
8.3.50.0000.01820.14
8.3.40.0060.00922.08
8.3.30.0170.00019.21
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.310.0120.00818.13
8.2.300.0120.00818.07
8.2.290.0120.00818.94
8.2.280.0050.00520.45
8.2.270.0180.00016.87
8.2.260.0110.00720.60
8.2.250.0040.00416.90
8.2.240.0030.00618.43
8.2.230.0050.00520.94
8.2.220.0120.00024.06
8.2.210.0000.00926.77
8.2.200.0050.00516.75
8.2.190.0040.01516.58
8.2.180.0090.00925.92
8.2.170.0080.01219.09
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00026.16
8.2.110.0060.00322.30
8.2.100.0120.00417.91
8.2.90.0000.00817.75
8.2.80.0090.00018.73
8.2.70.0000.00817.75
8.2.60.0040.00417.63
8.2.50.0040.00417.98
8.2.40.0030.00519.89
8.2.30.0000.00718.09
8.2.20.0000.00720.46
8.2.10.0000.00718.05
8.2.00.0000.00719.14
8.1.340.0180.00617.73
8.1.330.0100.01016.17
8.1.320.0120.00816.03
8.1.310.0100.01018.27
8.1.300.0040.00418.01
8.1.290.0090.00030.84
8.1.280.0180.00325.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0030.00623.92
8.1.230.0040.01122.81
8.1.220.0090.00018.56
8.1.210.0040.00418.77
8.1.200.0050.00317.35
8.1.190.0040.00417.36
8.1.180.0050.00518.10
8.1.170.0000.00717.62
8.1.160.0100.00018.82
8.1.150.0040.00418.60
8.1.140.0040.00417.29
8.1.130.0030.00318.76
8.1.120.0070.00317.36
8.1.110.0030.00617.31
8.1.100.0000.00717.31
8.1.90.0000.00917.41
8.1.80.0000.00817.30
8.1.70.0070.00017.33
8.1.60.0120.00617.62
8.1.50.0070.00717.42
8.1.40.0040.00917.47
8.1.30.0120.00017.60
8.1.20.0090.00417.71
8.1.10.0140.00317.46
8.1.00.0110.00717.54
8.0.300.0000.00719.98
8.0.290.0090.00016.75
8.0.280.0030.00318.46
8.0.270.0070.00016.96
8.0.260.0060.00318.48
8.0.250.0030.00317.02
8.0.240.0050.00317.08
8.0.230.0000.00717.06
8.0.220.0070.00017.05
8.0.210.0040.00417.04
8.0.200.0030.00317.15
8.0.190.0000.01117.15
8.0.180.0130.00316.94
8.0.170.0080.00817.07
8.0.160.0090.00716.98
8.0.150.0040.01316.93
8.0.140.0110.00416.98
8.0.130.0120.00416.94
8.0.120.0130.00317.07
8.0.110.0120.00417.04
8.0.100.0130.00417.04
8.0.90.0090.00917.02
8.0.80.0060.00916.96
8.0.70.0150.00016.94
8.0.60.0110.00416.95
8.0.50.0090.00617.00
8.0.30.0090.00616.83
8.0.20.0140.00016.90
8.0.10.0140.00017.02
7.4.330.0000.00515.55
7.4.320.0070.00016.45
7.4.300.0090.00016.68
7.4.290.0170.00016.54
7.4.280.0120.00416.44
7.4.270.0090.00816.58
7.4.260.0140.00516.49
7.4.250.0130.00416.52
7.4.240.0170.00016.41
7.4.230.0130.00516.58
7.4.220.0060.00616.56
7.4.210.0120.00316.62
7.4.200.0120.00416.62
7.4.190.0130.00216.68
7.4.180.0160.00016.48
7.4.160.0130.00416.59
7.4.150.0140.00316.62
7.4.140.0110.00416.39
7.4.130.0090.00716.41
7.4.120.0100.00516.24
7.4.110.0070.00716.43
7.4.100.0110.00316.61
7.4.90.0080.00816.39
7.4.80.0120.00416.39
7.4.70.0110.00416.45
7.4.60.0080.00816.32
7.4.50.0140.00016.25
7.4.40.0090.00616.27
7.4.30.0110.00416.36
7.4.20.0110.00316.43
7.4.10.0050.00316.43
7.4.00.0030.00616.25

preferences:
115.94 ms | 1351 KiB | 5 Q