3v4l.org

run code in 300+ PHP versions simultaneously
<?php $this->queries .= 'UPDATE ' . $this->table . ' SET '; foreach ($this->setAffectedCols as $cols) { $this->queries .= (end($cols) === $cols) ? $cols . '=' . $this->data[ $cols ] . ';' : $cols . '=' . $this->data[ $cols ] . ', '; $this->queries .= 'WHERE ' . $uniqueKey . '=' . $this->data[ $uniqueKey ]; } $this->queries .= ';'; $this->counter++;

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.70.0070.01418.20
8.3.60.0120.00916.63
8.3.50.0030.01421.15
8.3.40.0090.00618.88
8.3.30.0040.01118.79
8.3.20.0060.00320.19
8.3.10.0000.00823.48
8.3.00.0080.00017.93
8.2.190.0110.00416.58
8.2.180.0040.01118.25
8.2.170.0030.01022.96
8.2.160.0030.01020.40
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00317.50
8.2.110.0070.00422.08
8.2.100.0090.00317.80
8.2.90.0040.00419.20
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0030.00621.13
8.2.30.0080.00020.63
8.2.20.0000.00717.56
8.2.10.0000.00718.00
8.2.00.0070.00017.87
8.1.280.0070.01325.92
8.1.270.0140.00323.92
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00322.57
8.1.230.0070.00417.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.52
8.1.160.0040.00422.01
8.1.150.0040.00418.77
8.1.140.0050.00319.52
8.1.130.0070.00017.57
8.1.120.0080.00017.35
8.1.110.0040.00417.31
8.1.100.0070.00017.30
8.1.90.0030.00417.32
8.1.80.0030.00617.35
8.1.70.0000.00717.37
8.1.60.0030.00517.44
8.1.50.0000.00817.34
8.1.40.0030.00617.45
8.1.30.0060.00317.48
8.1.20.0040.00417.41
8.1.10.0070.00017.51
8.1.00.0050.00317.45
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0030.00317.25
8.0.260.0070.00017.10
8.0.250.0040.00416.95
8.0.240.0030.00316.82
8.0.230.0000.00716.98
8.0.220.0040.00416.87
8.0.210.0000.00716.82
8.0.200.0000.00616.82
8.0.190.0000.00716.92
8.0.180.0070.00016.81
8.0.170.0030.00516.84
8.0.160.0070.00016.88
8.0.150.0070.00016.73
8.0.140.0000.00716.86
8.0.130.0040.00413.37
8.0.120.0050.00316.86
8.0.110.0080.00016.77
8.0.100.0070.00016.95
8.0.90.0080.00016.96
8.0.80.0090.00916.84
8.0.70.0030.00416.88
8.0.60.0040.00416.80
8.0.50.0040.00416.91
8.0.30.0090.00717.08
8.0.20.0060.01117.40
8.0.10.0000.00716.80
8.0.00.0100.01016.73
7.4.330.0000.00515.08
7.4.320.0030.00316.46
7.4.300.0000.00616.55
7.4.290.0040.00416.41
7.4.280.0040.00416.42
7.4.270.0000.00716.52
7.4.260.0000.00716.57
7.4.250.0030.00316.38
7.4.240.0050.00216.56
7.4.230.0030.00316.34
7.4.220.0130.01316.59
7.4.210.0030.01316.56
7.4.200.0000.00716.26
7.4.160.0100.00616.36
7.4.150.0110.00717.40
7.4.140.0130.00717.86
7.4.130.0100.01016.55
7.4.120.0090.00816.43
7.4.110.0060.01216.58
7.4.100.0070.01016.46
7.4.90.0110.00716.50
7.4.80.0100.01019.39
7.4.70.0100.00716.56
7.4.60.0140.00716.37
7.4.50.0000.00716.14
7.4.40.0100.00616.50
7.4.30.0060.01116.48
7.4.00.0100.00615.18
7.3.330.0000.00613.05
7.3.320.0030.00312.98
7.3.310.0080.00016.36
7.3.300.0000.00716.23
7.3.290.0090.00716.28
7.3.280.0100.00816.27
7.3.270.0080.00817.40
7.3.260.0090.01316.50
7.3.250.0110.00816.38
7.3.240.0080.01216.54
7.3.230.0080.00816.39
7.3.210.0030.01316.45
7.3.200.0050.01016.38
7.3.190.0060.01016.45
7.3.180.0090.00916.31
7.3.170.0150.00716.27
7.3.160.0040.01116.40
7.2.330.0120.00916.66
7.2.320.0100.01016.60
7.2.310.0090.00916.60
7.2.300.0160.00016.22
7.2.290.0030.02116.39
7.2.60.0090.00016.51
7.2.00.0060.01019.44
7.1.200.0060.00915.68
7.1.100.0040.00817.64
7.1.70.0130.00816.73
7.1.60.0060.01819.50
7.1.50.0120.00916.80
7.1.00.0000.07022.45
7.0.200.0270.00614.77
7.0.60.0030.08019.88
7.0.50.0070.06717.91
7.0.40.0030.04320.19
7.0.30.0200.04020.29
7.0.20.0170.07720.13
7.0.10.0200.08020.00
7.0.00.0070.08320.18
5.6.280.0000.03320.92
5.6.210.0130.07320.50
5.6.200.0070.04318.12
5.6.190.0130.07320.41
5.6.180.3800.04720.58
5.6.170.0230.03720.38
5.6.160.0070.05320.37
5.6.150.0000.04318.22
5.6.140.0070.08018.11
5.6.130.0070.04318.22
5.6.120.0130.08021.14
5.6.110.0100.06721.13
5.6.100.0170.07320.96
5.6.90.0100.08321.01
5.6.80.0100.07720.42
5.6.70.0030.07020.47
5.5.350.0070.04320.29
5.5.340.0030.04718.04
5.5.330.0070.05020.19
5.5.320.0400.07720.41
5.5.310.0230.05020.26
5.5.300.0070.03717.98
5.5.290.0130.07318.02
5.5.280.0100.08020.87
5.5.270.0000.04720.80
5.5.260.0130.08320.75
5.5.250.0030.06320.68
5.5.240.0170.05020.28
5.4.450.0970.07019.61
5.4.440.0900.07019.46
5.4.430.0900.04319.11
5.4.420.0800.04019.08
5.4.410.0800.04719.30
5.4.400.1030.05719.18
5.4.390.0730.05318.99
5.4.380.0900.04318.95
5.4.370.0800.05319.15
5.4.360.0900.05719.00
5.4.350.0770.06019.18
5.4.340.0870.04719.06
5.4.320.0700.06318.90
5.4.310.0800.06019.15
5.4.300.0930.04019.13
5.4.290.0800.05319.26
5.4.280.0870.04719.14
5.4.270.0770.05319.21
5.4.260.0600.05719.21
5.4.250.0700.06019.13
5.4.240.0730.05318.78
5.4.230.0770.05719.13
5.4.220.0870.04719.26
5.4.210.0770.06019.23
5.4.200.0700.06019.14
5.4.190.0770.05319.12
5.4.180.0730.06019.20
5.4.170.0800.06019.12
5.4.160.0930.05719.10
5.4.150.0700.05019.11
5.4.140.0730.08016.29
5.4.130.1070.06016.43
5.4.120.0900.05016.18
5.4.110.0770.05316.49
5.4.100.1070.06016.55
5.4.90.0870.04716.21
5.4.80.0870.05716.43
5.4.70.1000.05316.54
5.4.60.0870.04716.55
5.4.50.0730.06016.47
5.4.40.0800.05716.43
5.4.30.0730.06716.38
5.4.20.0870.06016.43
5.4.10.0700.04716.43
5.4.00.0600.05015.88

preferences:
77.14 ms | 401 KiB | 5 Q