3v4l.org

run code in 300+ PHP versions simultaneously
<?php function updater_serv($connection,$email,$servicedta)//edit υπηρεσιών { $allowed = array_flip(['servicename','price','price_show','id']); // foreach ($servicedta as $update) { $update = array_intersect_key($update, $allowed); $id = array_pop($update); $values = array_values($update); $values[] = $id; $set = []; foreach ($update as $field => $value) { $set[] = "`{$field}`=:{$value}"; } $sql = 'UPDATE services_list SET ' . implode(', ', $set). ' WHERE serviceID='.$id; if($stmt=$connection->prepare($sql)) { $stmt->bind_param(str_repeat("s", count($set)+1), ...$values); $stmt->execute(); } } return 'update'; }

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.00.0120.01019.81
8.4.150.0020.00014.05
8.4.140.0100.01117.13
8.4.130.0100.01017.51
8.4.120.0110.00920.65
8.4.110.0040.00522.39
8.4.100.0130.00817.36
8.4.90.0140.00718.58
8.4.80.0040.00519.34
8.4.70.0120.00518.07
8.4.60.0130.00818.88
8.4.50.0060.00518.43
8.4.40.0030.00617.34
8.4.30.0130.00718.97
8.4.20.0100.01018.95
8.4.10.0040.00418.55
8.3.280.0140.00718.09
8.3.270.0070.01316.50
8.3.260.0130.00716.51
8.3.250.0110.00718.73
8.3.240.0120.00816.28
8.3.230.0110.00516.48
8.3.220.0060.00217.08
8.3.210.0100.00616.54
8.3.200.0050.00416.50
8.3.190.0120.00617.01
8.3.180.0110.00716.34
8.3.170.0100.00717.03
8.3.160.0070.01118.13
8.3.150.0090.00617.16
8.3.140.0040.00416.93
8.3.130.0000.00818.52
8.3.120.0090.00018.69
8.3.110.0110.00016.55
8.3.100.0030.00716.60
8.3.90.0030.00626.77
8.3.80.0100.00016.50
8.3.70.0110.00718.30
8.3.60.0110.00716.75
8.3.50.0110.00118.39
8.3.40.0040.01118.67
8.3.30.0110.00318.72
8.3.20.0070.00021.85
8.3.10.0040.00421.85
8.3.00.0060.00321.69
8.2.290.0140.00522.04
8.2.280.0080.01122.66
8.2.270.0140.00717.13
8.2.260.0070.01016.68
8.2.250.0040.00416.65
8.2.240.0080.00017.09
8.2.230.0060.00320.94
8.2.220.0000.00924.06
8.2.210.0110.00426.77
8.2.200.0060.00316.38
8.2.190.0110.00418.13
8.2.180.0060.01116.38
8.2.170.0070.00722.96
8.2.160.0100.00320.26
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0080.00021.04
8.2.120.0050.00226.35
8.2.110.0060.00320.51
8.2.100.0070.00717.66
8.2.90.0000.00819.95
8.2.80.0040.00417.97
8.2.70.0030.00517.78
8.2.60.0070.00018.09
8.2.50.0000.00718.10
8.2.40.0030.00618.97
8.2.30.0070.00319.20
8.2.20.0050.00217.86
8.2.10.0000.00917.99
8.2.00.0000.00718.99
8.1.330.0080.01121.81
8.1.320.0110.00415.79
8.1.310.0100.00718.04
8.1.300.0130.00317.55
8.1.290.0090.00330.84
8.1.280.0000.01425.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00718.88
8.1.230.0070.00422.77
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0000.00817.22
8.1.190.0080.00016.88
8.1.180.0040.00418.10
8.1.170.0090.00018.72
8.1.160.0080.00018.71
8.1.150.0000.00818.95
8.1.140.0040.00417.61
8.1.130.0070.00018.93
8.1.120.0070.00317.38
8.1.110.0030.00517.31
8.1.100.0000.00817.34
8.1.90.0070.00017.39
8.1.80.0040.00417.18
8.1.70.0000.00717.30
8.1.60.0030.00617.41
8.1.50.0000.00817.41
8.1.40.0040.00417.40
8.1.30.0000.00817.36
8.1.20.0000.00817.45
8.1.10.0000.00817.31
8.1.00.0030.00617.32
8.0.300.0000.00719.64
8.0.290.0030.00616.58
8.0.280.0040.00418.22
8.0.270.0030.00317.20
8.0.260.0030.00317.12
8.0.250.0000.00616.84
8.0.240.0070.00016.85
8.0.230.0030.00316.83
8.0.220.0000.00716.79
8.0.210.0080.00016.74
8.0.200.0000.00716.77
8.0.190.0040.00316.80
8.0.180.0040.00416.79
8.0.170.0040.00416.83
8.0.160.0030.00316.86
8.0.150.0040.00316.71
8.0.140.0000.00816.61
8.0.130.0030.00313.20
8.0.120.0050.00316.62
8.0.110.0040.00416.79
8.0.100.0070.00016.74
8.0.90.0040.00416.83
8.0.80.0110.00416.79
8.0.70.0070.00016.77
8.0.60.0050.00316.88
8.0.50.0030.00616.83
8.0.30.0100.00616.99
8.0.20.0080.01217.40
8.0.10.0000.00716.76
8.0.00.0060.01416.62
7.4.330.0000.00415.55
7.4.320.0060.00016.40
7.4.300.0000.00716.38
7.4.290.0000.00816.32
7.4.280.0000.00716.39
7.4.270.0070.00316.47
7.4.260.0030.00316.29
7.4.250.0000.00716.47
7.4.240.0040.00416.41
7.4.230.0030.00316.36
7.4.220.0000.00816.28
7.4.210.0070.00716.42
7.4.200.0000.00716.18
7.4.160.0070.01016.36
7.4.140.0110.00917.86
7.4.130.0170.00016.45
7.4.120.0090.01116.36
7.4.110.0090.00916.39
7.4.100.0080.00816.43
7.4.90.0120.00616.29
7.4.80.0130.00919.39
7.4.70.0110.00516.36
7.4.60.0030.01316.40
7.4.50.0060.00916.31
7.4.40.0140.00716.46
7.4.00.0030.01514.77
7.3.330.0000.00513.19
7.3.320.0060.00013.14
7.3.310.0070.00016.00
7.3.300.0030.00416.19
7.3.290.0000.00716.15
7.3.280.0100.00716.18
7.3.260.0130.00616.28
7.3.240.0120.00516.30
7.3.230.0070.01016.16
7.3.210.0100.00716.32
7.3.200.0120.00616.16
7.3.190.0100.00716.47
7.3.180.0090.00916.12
7.3.170.0090.01216.24
7.3.160.0040.01116.20
7.2.330.0130.00616.14
7.2.320.0070.01716.49
7.2.310.0090.01316.26
7.2.300.0100.01016.32
7.2.290.0060.01316.45
7.2.60.0230.00816.21
7.2.40.4210.01517.82
7.2.30.1690.01117.41
7.2.20.1680.00817.86
7.2.10.4180.01117.54
7.2.00.2130.01517.87
7.1.200.0000.00715.68
7.1.160.1760.01316.85
7.1.150.3140.00716.71
7.1.140.2020.00516.85
7.1.130.2380.01016.83
7.1.120.2550.01116.77
7.1.110.2790.00916.22
7.1.100.1490.00716.13
7.1.90.4300.01416.00
7.1.80.3810.00815.97
7.1.70.1710.01015.12
7.1.60.1950.01232.98
7.1.50.0800.01532.93
7.1.40.0300.01532.36
7.1.30.0280.01432.59
7.1.20.0310.01632.63
7.1.10.0140.01014.53
7.1.00.4190.00814.90

preferences:
30.67 ms | 403 KiB | 5 Q