3v4l.org

run code in 300+ PHP versions simultaneously
<?php $queryArray = array( 'ebben' => array( //$changes 'ezt' => 'erre', //No escape 'ezt2' => 'nes:erre', array( //$condition 'where' => array( 'ez' => 'ezzel' ) ) ) ); //'UPDATE _table_ SET _field_ = _value_ WHERE _field_ = _value_'; foreach($queryArray as $table => $fields) { if(array_keys($fields) != '0') { print $table . ' SET ' . implode(' = ? ', array_keys($fields)); } }

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.0110.00416.63
8.3.50.0160.00622.83
8.3.40.0070.00718.67
8.3.30.0070.00719.14
8.3.20.0070.00020.21
8.3.10.0000.00823.52
8.3.00.0040.00419.21
8.2.180.0130.00716.63
8.2.170.0130.00322.96
8.2.160.0040.01120.52
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0110.00019.35
8.2.110.0040.00720.39
8.2.100.0090.00318.03
8.2.90.0060.00319.07
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00817.90
8.2.50.0050.00318.07
8.2.40.0000.00718.09
8.2.30.0000.00819.37
8.2.20.0070.00017.66
8.2.10.0040.00418.03
8.2.00.0000.00717.75
8.1.280.0030.01025.92
8.1.270.0030.00623.87
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.06
8.1.230.0100.00019.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00617.35
8.1.190.0050.00517.13
8.1.180.0080.00018.10
8.1.170.0050.00318.66
8.1.160.0000.00822.07
8.1.150.0000.00718.93
8.1.140.0000.00717.33
8.1.130.0030.00317.70
8.1.120.0040.00417.49
8.1.110.0070.00017.51
8.1.100.0000.00717.46
8.1.90.0040.00417.36
8.1.80.0070.00017.55
8.1.70.0030.00317.41
8.1.60.0040.00417.53
8.1.50.0040.00417.50
8.1.40.0030.00617.55
8.1.30.0080.00017.64
8.1.20.0080.00017.53
8.1.10.0040.00417.52
8.1.00.0000.00817.42
8.0.300.0030.00518.77
8.0.290.0080.00016.75
8.0.280.0060.00318.52
8.0.270.0000.00717.26
8.0.260.0040.00417.30
8.0.250.0080.00016.97
8.0.240.0000.00717.02
8.0.230.0040.00416.93
8.0.220.0000.00716.82
8.0.210.0030.00316.92
8.0.200.0030.00316.82
8.0.190.0000.00716.98
8.0.180.0040.00416.94
8.0.170.0040.00416.83
8.0.160.0030.00316.75
8.0.150.0000.00716.88
8.0.140.0040.00416.87
8.0.130.0080.00013.29
8.0.120.0000.00816.85
8.0.110.0070.00016.81
8.0.100.0050.00316.77
8.0.90.0040.00416.93
8.0.80.0090.00916.87
8.0.70.0040.00416.81
8.0.60.0050.00316.93
8.0.50.0000.00816.78
8.0.30.0070.01316.95
8.0.20.0110.01217.41
8.0.10.0040.00417.05
8.0.00.0110.00916.57
7.4.330.0000.00615.08
7.4.320.0070.00016.58
7.4.300.0000.00716.60
7.4.290.0040.00416.50
7.4.280.0000.00916.48
7.4.270.0040.00416.56
7.4.260.0070.00016.42
7.4.250.0040.00416.36
7.4.240.0030.00316.48
7.4.230.0030.00316.41
7.4.220.0120.00816.70
7.4.210.0030.01016.62
7.4.200.0050.00316.35
7.4.160.0120.00816.75
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0050.01116.46
7.4.120.0070.01216.58
7.4.110.0140.00316.73
7.4.100.0000.01716.66
7.4.90.0120.00916.58
7.4.80.0080.01119.39
7.4.70.0100.00716.61
7.4.60.0170.00016.37
7.4.50.0000.00816.48
7.4.40.0100.00716.57
7.4.30.0120.00316.43
7.4.00.0080.00814.95
7.3.330.0050.00013.15
7.3.320.0000.00513.11
7.3.310.0030.00316.27
7.3.300.0030.00316.25
7.3.290.0030.01116.30
7.3.280.0100.00916.25
7.3.270.0200.00017.40
7.3.260.0160.00016.61
7.3.250.0070.01016.41
7.3.240.0110.01116.50
7.3.230.0100.00716.47
7.3.210.0140.00316.47
7.3.200.0090.00919.39
7.3.190.0070.01116.64
7.3.180.0040.01216.45
7.3.170.0060.00916.37
7.3.160.0030.01316.29
7.3.00.0140.00016.61
7.2.330.0130.01316.47
7.2.320.0030.01416.74
7.2.310.0140.00716.59
7.2.300.0110.00716.59
7.2.290.0030.01616.63
7.2.130.0040.01116.92
7.2.120.0070.00717.00
7.2.110.0030.01016.79
7.2.100.0000.01316.97
7.2.90.0100.00716.83
7.2.80.0000.01316.96
7.2.70.0100.00716.75
7.2.60.0100.00616.78
7.2.50.0030.00716.86
7.2.40.0000.01116.94
7.2.30.0070.01017.06
7.2.20.0080.00616.72
7.2.10.0060.00616.62
7.2.00.0120.00717.92
7.1.250.0060.00615.84
7.1.240.0070.01015.78
7.1.230.0040.01215.84
7.1.220.0130.00315.61
7.1.210.0030.01015.81
7.1.200.0090.00315.74
7.1.190.0070.00715.55
7.1.180.0030.01015.86
7.1.170.0130.00615.69
7.1.160.0100.00315.80
7.1.150.0090.00315.70
7.1.140.0040.00815.40
7.1.130.0040.00715.82
7.1.120.0100.00015.80
7.1.110.0040.00715.84
7.1.100.0150.00316.58
7.1.90.0040.01115.82
7.1.80.0070.00715.82
7.1.70.0020.01016.29
7.1.60.0150.00317.67
7.1.50.0050.00716.18
7.1.40.0030.00915.80
7.1.30.0060.00615.90
7.1.20.0070.01115.61
7.1.10.0100.00715.86
7.1.00.0080.03818.96
7.0.330.0100.00615.37
7.0.320.0080.00315.38
7.0.310.0030.00715.12
7.0.300.0030.00615.32
7.0.290.0000.00915.20
7.0.280.0030.00615.41
7.0.270.0070.00315.47
7.0.260.0030.00615.37
7.0.250.0040.00815.30
7.0.240.0040.00415.47
7.0.230.0070.00815.61
7.0.220.0000.00815.40
7.0.210.0160.00315.27
7.0.200.0040.00715.95
7.0.190.0030.00615.44
7.0.180.0060.00615.39
7.0.170.0120.00015.47
7.0.160.0030.00915.33
7.0.150.0060.00615.56
7.0.140.0030.04118.67
7.0.130.0060.00315.47
7.0.120.0090.00615.52
7.0.110.0030.01015.45
7.0.100.0000.01415.30
7.0.90.0060.00915.55
7.0.80.0040.00415.38
7.0.70.0030.01015.35
7.0.60.0130.03817.75
7.0.50.0130.02716.73
7.0.40.0070.04216.81
7.0.30.0240.04116.80
7.0.20.0120.04716.75
7.0.10.0070.02516.62
7.0.00.0070.03116.75
5.6.380.0040.01114.21
5.6.370.0070.00714.29
5.6.360.0060.00914.32
5.6.350.0110.00414.51
5.6.340.0000.01314.29
5.6.330.0050.00514.34
5.6.320.0070.01013.98
5.6.310.0090.00314.34
5.6.300.0000.01214.43
5.6.290.0110.00314.60
5.6.280.0030.04317.61
5.6.270.0030.01014.48
5.6.260.0090.00014.41
5.6.250.0030.00714.25
5.6.240.0100.00314.36
5.6.230.0030.01014.19
5.6.220.0040.01214.37
5.6.210.0070.02717.38
5.6.200.0090.01816.19
5.6.190.0050.04717.40
5.6.180.0170.03817.46
5.6.170.0150.04417.43
5.6.160.0030.02617.34
5.6.150.0070.02216.36
5.6.140.0050.02916.31
5.6.130.0080.02416.28
5.6.120.0030.03017.64
5.6.110.0050.04517.63
5.6.100.0070.04517.77
5.6.90.0100.03717.71
5.6.80.0080.04417.34
5.6.70.2250.02517.36
5.6.60.0040.00814.10
5.6.50.0000.01314.11
5.6.40.0070.00714.13
5.6.30.0060.00614.11
5.6.20.0090.00314.32
5.6.10.0060.00614.26
5.6.00.0070.00714.18
5.5.380.0040.00711.18
5.5.370.0030.01011.18
5.5.360.0000.00611.18
5.5.350.0070.04515.74
5.5.340.0030.02414.60
5.5.330.0030.03415.69
5.5.320.0170.03515.74
5.5.310.0220.03515.72
5.5.300.0050.02514.54
5.5.290.0070.03114.61
5.5.280.0070.02216.02
5.5.270.0020.02915.91
5.5.260.0060.03516.03
5.5.250.0050.02115.93
5.5.240.0160.03715.72
5.5.230.0000.01011.18
5.5.220.0050.00511.18
5.5.210.0040.00711.18
5.5.200.0060.00711.18
5.5.190.0000.01111.18
5.5.180.0040.00811.18
5.5.170.0060.00611.18
5.5.160.0030.00511.18
5.5.150.0060.00311.18
5.5.140.0040.00711.18
5.5.130.0000.00811.19
5.5.120.0100.00011.18
5.5.110.0100.00011.18
5.5.100.0060.00311.18
5.5.90.0000.00811.18
5.5.80.0080.00411.18
5.5.70.0060.00011.18
5.5.60.0090.00011.18
5.5.50.0000.01011.18
5.5.40.0000.00911.18
5.5.30.0060.00611.18
5.5.20.0000.01111.18
5.5.10.0100.00311.18
5.5.00.0040.00711.18
5.4.450.0130.02215.23
5.4.440.0100.02615.31
5.4.430.0210.02315.37
5.4.420.0120.02515.29
5.4.410.0060.01815.27
5.4.400.0150.02015.15
5.4.390.0120.02815.21
5.4.380.0120.03814.95
5.4.370.0260.03014.91
5.4.360.0260.03514.95
5.4.350.0170.02914.91
5.4.340.0230.03314.84
5.4.330.0070.00411.18
5.4.320.0060.02411.82
5.4.310.0060.02811.81
5.4.300.0070.02311.82
5.4.290.0050.02111.81
5.4.280.0050.02111.76
5.4.270.0050.02311.76
5.4.260.0040.02211.76
5.4.250.0060.02011.76
5.4.240.0070.01911.76
5.4.230.0060.02311.76
5.4.220.0050.02211.76
5.4.210.0040.02511.76
5.4.200.0040.02311.76
5.4.190.0060.02211.76
5.4.180.0060.02111.76
5.4.170.0060.02411.76
5.4.160.0100.02411.76
5.4.150.0120.02111.76
5.4.140.0080.02511.60
5.4.130.0050.02111.60
5.4.120.0040.02111.57
5.4.110.0060.02511.57
5.4.100.0040.02111.61
5.4.90.0040.02111.57
5.4.80.0050.02911.57
5.4.70.0070.02011.57
5.4.60.0060.02211.57
5.4.50.0060.02111.57
5.4.40.0040.02211.56
5.4.30.0090.01811.56
5.4.20.0060.02411.56
5.4.10.0040.02011.56
5.4.00.0040.02311.31
5.3.290.0050.02411.99
5.3.280.0070.02111.94
5.3.270.0080.02411.95
5.3.260.0070.02311.95
5.3.250.0080.02411.95
5.3.240.0040.02611.95
5.3.230.0060.02411.94
5.3.220.0080.02011.93
5.3.210.0090.02111.93
5.3.200.0080.02411.93
5.3.190.0030.02411.93
5.3.180.0080.01911.93
5.3.170.0100.02511.92
5.3.160.0080.02211.93
5.3.150.0030.02211.93
5.3.140.0040.02311.92
5.3.130.0030.02511.91
5.3.120.0050.02411.92
5.3.110.0010.02911.92
5.3.100.0030.02111.65
5.3.90.0060.02611.63
5.3.80.0050.02411.63
5.3.70.0040.02511.63
5.3.60.0060.01911.62
5.3.50.0040.02311.59
5.3.40.0090.01611.59
5.3.30.0040.02011.56
5.3.20.0030.02011.45
5.3.10.0050.01811.43
5.3.00.0040.02011.43
5.2.170.0060.01710.18
5.2.160.0020.01810.18
5.2.150.0050.01510.18
5.2.140.0050.01610.17
5.2.130.0040.01710.16
5.2.120.0050.01510.16
5.2.110.0050.01610.16
5.2.100.0060.01610.16
5.2.90.0030.01610.16
5.2.80.0050.01710.16
5.2.70.0040.01810.15
5.2.60.0040.02110.13
5.2.50.0040.02310.12
5.2.40.0050.01510.11
5.2.30.0040.01710.09
5.2.20.0020.01910.09
5.2.10.0040.02010.05
5.2.00.0040.0189.98
5.1.60.0050.0139.63
5.1.50.0060.0139.63
5.1.40.0020.0179.62
5.1.30.0020.0179.79
5.1.20.0070.0139.80
5.1.10.0030.0159.66
5.1.00.0040.0149.67
5.0.50.0050.0108.90
5.0.40.0020.0128.84
5.0.30.0050.0228.74
5.0.20.0050.0108.72
5.0.10.0040.0148.71
5.0.00.0050.0218.71
4.4.90.0050.0107.98
4.4.80.0020.0117.96
4.4.70.0010.0117.96
4.4.60.0020.0127.96
4.4.50.0050.0097.97
4.4.40.0030.0147.94
4.4.30.0040.0097.97
4.4.20.0010.0128.01
4.4.10.0010.0118.01
4.4.00.0050.0137.97
4.3.110.0060.0077.92
4.3.100.0030.0107.92
4.3.90.0020.0107.91
4.3.80.0020.0157.88
4.3.70.0040.0087.90
4.3.60.0010.0137.90
4.3.50.0040.0107.90
4.3.40.0040.0157.86
4.3.30.0010.0147.23
4.3.20.0020.0107.22
4.3.10.0030.0097.21
4.3.00.0050.00814.87

preferences:
52.91 ms | 401 KiB | 5 Q