3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DB { var $sql_query = 'update :table_foo set products_price = :products_price, products_price_ek = :products_price_ek'; function bindReplace($place_holder, $value) { $pos = strpos($this->sql_query, $place_holder); if ($pos !== false) { $length = strlen($place_holder); $character_after_place_holder = substr($this->sql_query, $pos+$length, 1); if (($character_after_place_holder === false) || preg_match('/[ ,)"]/', $character_after_place_holder)) { $this->sql_query = substr_replace($this->sql_query, $value, $pos, $length); } } } } $obj = new DB; $obj->bindReplace(':products_price', '10.000'); echo $obj->sql_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.3.60.0100.01316.88
8.3.50.0100.00816.84
8.3.40.0110.00418.96
8.3.30.0090.00618.61
8.3.20.0040.00418.94
8.3.10.0040.00418.73
8.3.00.0030.00719.63
8.2.180.0070.00716.63
8.2.170.0040.01222.96
8.2.160.0060.01018.98
8.2.150.0050.00325.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.65
8.2.110.0040.00719.36
8.2.100.0080.00317.91
8.2.90.0080.00017.88
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0000.00817.91
8.2.50.0000.00918.07
8.2.40.0040.00419.47
8.2.30.0090.00317.92
8.2.20.0030.00717.73
8.2.10.0000.00717.75
8.2.00.0060.00317.85
8.1.280.0180.00025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00420.92
8.1.230.0070.00417.77
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0030.00618.87
8.1.160.0050.00219.07
8.1.150.0000.00718.73
8.1.140.0000.00817.62
8.1.130.0030.00619.33
8.1.120.0070.00017.66
8.1.110.0000.00817.52
8.1.100.0030.00317.66
8.1.90.0000.00717.63
8.1.80.0040.00417.53
8.1.70.0000.00717.63
8.1.60.0000.00817.70
8.1.50.0040.00417.62
8.1.40.0000.00817.65
8.1.30.0040.00417.81
8.1.20.0030.00617.75
8.1.10.0000.00717.70
8.1.00.0030.00517.68
8.0.300.0040.00418.77
8.0.290.0070.00216.75
8.0.280.0000.00718.50
8.0.270.0070.00017.21
8.0.260.0030.00316.89
8.0.250.0050.00517.14
8.0.240.0030.00317.03
8.0.230.0040.00417.08
8.0.220.0000.00916.91
8.0.210.0040.00417.04
8.0.200.0040.00417.13
8.0.190.0050.00217.03
8.0.180.0000.00717.00
8.0.170.0080.00017.11
8.0.160.0040.00417.16
8.0.150.0040.00417.09
8.0.140.0000.00817.01
8.0.130.0060.00013.39
8.0.120.0060.00316.99
8.0.110.0040.00416.92
8.0.100.0030.00516.91
8.0.90.0000.00816.95
8.0.80.0060.00917.01
8.0.70.0080.00017.01
8.0.60.0040.00416.94
8.0.50.0040.00417.11
8.0.30.0130.00717.07
8.0.20.0080.01017.31
8.0.10.0000.00817.13
8.0.00.0100.01016.88
7.4.330.0050.00013.33
7.4.320.0040.00416.65
7.4.300.0000.00616.71
7.4.290.0050.00516.65
7.4.280.0040.00716.73
7.4.270.0000.00716.73
7.4.260.0030.00313.50
7.4.250.0060.00316.68
7.4.240.0080.00016.80
7.4.230.0040.00416.92
7.4.220.0080.01216.78
7.4.210.0040.01116.93
7.4.200.0080.00016.76
7.4.190.0080.00016.80
7.4.160.0090.00616.73
7.4.150.0140.00316.73
7.4.140.0140.00717.86
7.4.130.0140.00316.68
7.4.120.0120.00916.68
7.4.110.0110.00716.95
7.4.100.0040.01416.56
7.4.90.0130.00616.59
7.4.80.0100.00719.39
7.4.70.0110.01116.83
7.4.60.0030.01316.70
7.4.50.0000.00516.55
7.4.40.0090.00616.75
7.4.30.0170.00416.57
7.4.00.0080.01015.04
7.3.330.0020.00513.46
7.3.320.0000.00513.48
7.3.310.0070.00016.66
7.3.300.0000.00616.46
7.3.290.0050.00916.52
7.3.280.0120.00916.50
7.3.270.0140.00216.52
7.3.260.0050.01316.50
7.3.240.0160.00016.46
7.3.230.0110.01116.86
7.3.210.0120.00616.59
7.3.200.0070.01116.71
7.3.190.0080.00816.70
7.3.180.0050.01316.52
7.3.170.0000.01816.45
7.3.160.0100.00616.70
7.3.120.0110.00415.05
7.3.110.0100.00714.99
7.3.100.0060.00915.28
7.3.90.0060.00915.03
7.3.80.0070.01014.78
7.3.70.0060.00914.89
7.3.60.0070.01015.11
7.3.50.0080.00414.74
7.3.40.0000.01514.73
7.3.30.0070.00714.82
7.3.20.0140.00316.87
7.3.10.0080.00916.76
7.3.00.0040.01216.64
7.2.330.0080.00816.91
7.2.320.0080.00816.72
7.2.310.0170.00617.01
7.2.300.0060.01516.92
7.2.290.0140.00616.79
7.2.250.0060.01315.34
7.2.240.0100.01015.10
7.2.230.0080.00515.46
7.2.220.0110.00415.25
7.2.210.0100.00715.09
7.2.200.0030.01315.43
7.2.190.0060.00915.17
7.2.180.0000.01115.02
7.2.170.0040.00715.02
7.2.130.0140.00717.00
7.2.120.0110.01116.74
7.2.110.0110.00717.07
7.2.100.0130.00917.25
7.2.90.0000.01416.95
7.2.80.0160.00317.18
7.2.70.0140.00316.95
7.2.60.0180.00616.93
7.2.50.0230.01016.94
7.2.40.0080.01116.74
7.2.30.0110.01417.21
7.2.20.0100.01016.95
7.2.10.0230.01516.91
7.2.00.0060.01218.46
7.1.330.0120.00015.69
7.1.320.0090.00015.83
7.1.310.0030.01015.95
7.1.300.0070.00716.02
7.1.290.0040.01115.95
7.1.280.0060.00915.90
7.1.270.0060.00916.05
7.1.260.0090.00315.93
7.1.250.0030.01015.77
7.1.200.0070.00415.97
7.1.100.0060.00618.58
7.1.70.0000.01017.42
7.1.60.0100.01419.25
7.1.50.0230.01335.12
7.1.00.0100.07022.36
7.0.200.0000.01116.95
7.0.140.0030.07022.04
7.0.120.0070.06722.09
7.0.110.0630.07719.93
7.0.100.0700.06019.89
7.0.90.0670.08020.02
7.0.80.0700.08019.98
7.0.70.0630.08019.94
7.0.60.0670.07020.04
7.0.50.0670.08720.44
7.0.40.0170.07020.25
7.0.30.0130.04720.04
7.0.20.0170.06719.96
7.0.10.0030.08320.15
7.0.00.0100.08020.26
5.6.280.0030.07321.07
5.6.260.0130.07320.63
5.6.250.0130.07320.62
5.6.240.0130.08020.48
5.6.230.0130.07720.66
5.6.220.0000.05720.55
5.6.210.0070.08720.71
5.6.200.0130.08021.09
5.6.190.0030.04721.14
5.6.180.0100.08021.05
5.6.170.0100.07321.05
5.6.160.0200.06720.95
5.6.150.0130.04321.29
5.6.140.0100.07721.09
5.6.130.0100.08321.27
5.6.120.0030.07721.21
5.6.110.0100.08021.13
5.6.100.0130.07321.21
5.6.90.0070.08020.94
5.6.80.0200.07020.33
5.6.70.0030.08020.47
5.6.60.0130.07020.52
5.6.50.0070.08020.32
5.6.40.0070.08020.29
5.6.30.0000.08320.63
5.6.20.0170.07320.63
5.6.10.0100.06020.29
5.6.00.0030.08320.56
5.5.380.0100.07720.59
5.5.370.0070.06020.30
5.5.360.0030.08020.51
5.5.350.0130.08020.49
5.5.340.0130.07720.70
5.5.330.0100.07020.68
5.5.320.0100.08020.78
5.5.310.0070.07320.87
5.5.300.0070.07321.04
5.5.290.0130.07720.79
5.5.280.0070.05320.97
5.5.270.0100.08021.01
5.5.260.0200.06320.90
5.5.250.0130.06320.83
5.5.240.0030.07720.14
5.5.230.0030.07720.08
5.5.220.0100.07720.39
5.5.210.0070.06320.29
5.5.200.0070.08020.35
5.5.190.0030.07320.16
5.5.180.0100.06020.05
5.5.160.0070.08020.34
5.5.150.0030.08320.16
5.5.140.0100.07320.26
5.5.130.0130.03720.09
5.5.120.0070.07720.34
5.5.110.0070.07020.13
5.5.100.0000.08320.16
5.5.90.0200.05720.05
5.5.80.0100.07720.08
5.5.70.0130.07320.04
5.5.60.0070.07320.18
5.5.50.0070.08020.21
5.5.40.0130.07019.99
5.5.30.0100.07320.23
5.5.20.0070.07320.14
5.5.10.0030.07719.95
5.5.00.0100.07720.09
5.4.450.0170.06719.34
5.4.440.0100.07719.57
5.4.430.0070.07319.33
5.4.420.0130.07719.35
5.4.410.0100.04719.42
5.4.400.0100.07319.02
5.4.390.0070.05019.00
5.4.380.0070.05719.02
5.4.370.0070.03719.18
5.4.360.0130.07719.18
5.4.350.0030.08019.18
5.4.340.0100.06718.95
5.4.320.0100.07019.00
5.4.310.0030.07318.95
5.4.300.0070.07019.18
5.4.290.0100.06719.18
5.4.280.0130.07019.02
5.4.270.0070.08018.95
5.4.260.0100.07318.98
5.4.250.0070.07019.30
5.4.240.0100.07019.00
5.4.230.0070.07319.21
5.4.220.0130.07019.14
5.4.210.0030.07319.16
5.4.200.0070.07719.22
5.4.190.0070.07719.00
5.4.180.0100.07318.99
5.4.170.0070.07318.98
5.4.160.0200.06319.01
5.4.150.0170.06019.14
5.4.140.0070.05016.52
5.4.130.0070.07016.60
5.4.120.0100.05716.33
5.4.110.0030.07316.26
5.4.100.0030.07716.51
5.4.90.0000.04716.46
5.4.80.0100.07016.24
5.4.70.0070.07716.30
5.4.60.0100.07316.45
5.4.50.0030.06316.57
5.4.40.0030.04316.36
5.4.30.0070.07016.23
5.4.20.0030.07316.28
5.4.10.0170.06316.28
5.4.00.0030.07715.80
5.3.290.0100.07314.80
5.3.280.0070.04314.57
5.3.270.0100.07314.58
5.3.260.0030.08014.46
5.3.250.0070.04314.68
5.3.240.0070.07314.68
5.3.230.0100.07714.70
5.3.220.0130.06714.55
5.3.210.0130.06314.80
5.3.200.0100.06714.43
5.3.190.0030.07314.42
5.3.180.0070.07714.70
5.3.170.0000.07714.52
5.3.160.0130.07014.42
5.3.150.0070.07314.55
5.3.140.0070.07314.78
5.3.130.0000.08314.57
5.3.120.0100.06314.77
5.3.110.0170.06714.57
5.3.100.0130.07013.90
5.3.90.0070.07314.03
5.3.80.0030.07713.88
5.3.70.0100.04314.01
5.3.60.0130.06714.13
5.3.50.0100.07013.95
5.3.40.0070.04013.80
5.3.30.0070.07313.93
5.3.20.0130.06713.72
5.3.10.0130.06313.61
5.3.00.0030.07713.73
5.2.170.0100.03711.82
5.2.160.0030.03711.82
5.2.150.0070.06311.82
5.2.140.0030.06711.82
5.2.130.0100.06011.82
5.2.120.0030.04711.82
5.2.110.0000.04011.82
5.2.100.0030.06311.82
5.2.90.0070.06011.82
5.2.80.0100.06011.82
5.2.70.0030.06311.82
5.2.60.0100.05711.82
5.2.50.0030.06711.82
5.2.40.0070.06311.82
5.2.30.0100.03711.82
5.2.20.0030.06011.82
5.2.10.0030.05311.82
5.2.00.0030.06011.82
5.1.60.0100.04711.82
5.1.50.0030.04311.82
5.1.40.0030.05311.82
5.1.30.0070.05311.82
5.1.20.0070.05311.82
5.1.10.0030.05011.82
5.1.00.0000.05711.82
5.0.50.0070.02711.82
5.0.40.0030.04711.82
5.0.30.0030.07011.82
5.0.20.0030.04311.82
5.0.10.0000.05011.82
5.0.00.0000.06311.82
4.4.90.0000.03711.82
4.4.80.0070.01311.82
4.4.70.0070.03311.82
4.4.60.0030.03311.82
4.4.50.0000.03711.82
4.4.40.0030.05311.82
4.4.30.0030.03711.82
4.4.20.0070.03311.82
4.4.10.0030.02011.82
4.4.00.0000.03311.82
4.3.110.0000.03711.82
4.3.100.0000.04011.82
4.3.90.0000.03311.82
4.3.80.0070.04711.82
4.3.70.0000.02711.82
4.3.60.0030.03011.82
4.3.50.0070.03011.82
4.3.40.0000.05011.82
4.3.30.0030.03311.82
4.3.20.0070.03011.82
4.3.10.0030.02311.82
4.3.00.0070.02711.82

preferences:
76.04 ms | 401 KiB | 5 Q