3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); // PHP 7.1 ALL error $nuova_data = '2021-10-05'; $row['BookID'] = 1; $query = "UPDATE book SET year = '$nuova_data' WHERE BookID = '$row'['BookID']"; //$query2 = $query = "UPDATE book SET year = '$nuova_data' WHERE BookID = '{$row['BookID']}'"; var_dump($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.4.10.0000.00925.86
8.3.140.0090.00616.91
8.3.130.0160.00018.61
8.3.120.0060.00318.78
8.3.110.0060.00920.94
8.3.100.0080.00016.83
8.3.90.0090.00026.77
8.3.80.0050.00516.63
8.3.70.0030.01518.27
8.3.60.0110.00418.55
8.3.50.0050.01224.49
8.3.40.0060.00918.96
8.3.30.0100.00618.79
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.260.0050.00317.28
8.2.250.0030.00516.75
8.2.240.0040.00417.02
8.2.230.0120.00022.58
8.2.220.0090.00037.54
8.2.210.0140.00026.77
8.2.200.0030.00616.50
8.2.190.0220.00016.75
8.2.180.0110.00325.92
8.2.170.0040.01119.15
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00026.35
8.2.110.0100.00022.26
8.2.100.0090.00318.03
8.2.90.0080.00017.84
8.2.80.0080.00018.78
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0030.00518.05
8.2.40.0040.00418.28
8.2.30.0070.00018.05
8.2.20.0000.00718.12
8.2.10.0040.00419.19
8.2.00.0070.00019.20
8.1.310.0120.00618.36
8.1.300.0060.00318.07
8.1.290.0030.00618.88
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0090.00028.09
8.1.250.0080.00028.09
8.1.240.0070.00320.90
8.1.230.0080.00317.89
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0050.00318.71
8.1.160.0040.00418.70
8.1.150.0070.00018.88
8.1.140.0020.00518.88
8.1.130.0000.00720.13
8.1.120.0070.00017.43
8.1.110.0040.00417.28
8.1.100.0040.00417.42
8.1.90.0000.00817.23
8.1.80.0040.00417.29
8.1.70.0090.00317.28
8.1.60.0060.00317.50
8.1.50.0000.00817.50
8.1.40.0000.00817.42
8.1.30.0080.00317.58
8.1.20.0040.00417.59
8.1.10.0040.00417.57
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0050.00318.50
8.0.270.0030.00318.12
8.0.260.0080.00018.45
8.0.250.0040.00417.05
8.0.240.0030.00317.02
8.0.230.0030.00317.03
8.0.220.0040.00316.87
8.0.210.0000.00816.89
8.0.200.0070.00016.92
8.0.190.0000.00816.94
8.0.180.0030.00316.98
8.0.170.0030.00616.94
8.0.160.0050.00217.05
8.0.150.0000.00716.89
8.0.140.0080.00016.96
8.0.130.0030.00313.41
8.0.120.0000.00816.95
8.0.110.0070.00016.98
8.0.100.0070.00016.76
8.0.90.0030.00517.00
8.0.80.0090.00816.89
8.0.70.0040.00416.88
8.0.60.0000.00916.75
8.0.50.0050.00316.85
8.0.30.0100.00717.08
8.0.20.0110.00917.42
8.0.10.0060.01317.40
8.0.00.0120.00617.40
7.4.330.0000.00516.88
7.4.320.0030.00316.38
7.4.300.0060.00316.32
7.4.290.0030.00316.39
7.4.280.0040.00416.39
7.4.270.0000.00716.46
7.4.260.0000.00513.21
7.4.250.0000.00716.40
7.4.240.0030.00316.53
7.4.230.0000.00716.55
7.4.220.0050.00216.49
7.4.210.0040.01016.46
7.4.200.0040.00416.48
7.4.150.0090.01117.40
7.4.140.0040.01317.40
7.4.130.0040.01317.40
7.4.120.0060.01217.40
7.4.110.0090.01017.40
7.4.100.0170.00717.40
7.4.90.0080.00917.40
7.4.80.0070.01317.40
7.4.70.0070.01117.40
7.4.60.0050.01317.40
7.4.50.0100.01117.40
7.4.40.0080.00817.40
7.4.30.0100.00817.40
7.4.20.0080.01017.40
7.4.10.0140.00717.40
7.4.00.0100.00717.40
7.3.330.0050.00216.11
7.3.320.0030.00313.14
7.3.310.0070.00016.18
7.3.300.0030.00316.37
7.3.290.0110.00616.30
7.3.270.0090.00917.40
7.3.260.0100.01017.40
7.3.250.0130.00517.40
7.3.240.0150.00217.40
7.3.230.0100.00617.40
7.3.220.0150.00417.40
7.3.210.0090.00817.40
7.3.200.0100.00717.40
7.3.190.0060.01017.40
7.3.180.0140.00617.40
7.3.170.0050.01317.40
7.3.160.0140.00317.40
7.3.150.0080.01017.40
7.3.140.0080.01017.40
7.3.130.0060.01217.40
7.3.120.0140.00517.40
7.3.110.0090.01017.40
7.3.100.0110.01117.40
7.3.90.0140.00717.40
7.3.80.0130.00717.40
7.3.70.0170.00517.40
7.3.60.0120.01017.40
7.3.50.0070.01017.40
7.3.40.0120.00817.40
7.3.30.0080.01017.40
7.3.20.0870.00617.40
7.3.10.0100.00717.40
7.3.00.0070.01217.40

preferences:
49.74 ms | 403 KiB | 5 Q