3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = 'UPDATE `table_name` SET `field1_name` = :? WHERE `field2_name` = :?'; $bind_marker = '?'; $bind_values = array("'foo'", "'bar'"); echo str_replace($bind_marker, $bind_values, $query);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kHkoL
function name:  (null)
number of ops:  10
compiled vars:  !0 = $query, !1 = $bind_marker, !2 = $bind_values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'UPDATE+%60table_name%60+SET+%60field1_name%60+%3D+%3A%3F+WHERE+%60field2_name%60+%3D+%3A%3F'
    3     1        ASSIGN                                                   !1, '%3F'
    4     2        ASSIGN                                                   !2, <array>
    5     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.29 ms | 1394 KiB | 15 Q