3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $input = array( array( 'tag_name' => 'google' ), array( 'tag_name' => 'technology' ) );*/ //column $a = "asd,sadsa,sdaad"; echo query_columns ($a,'adss', "ard = '1' and try = '12'"); //where function query_columns ($columns, $tables, $where) { //column //$columns = explode(',',$columns); //$columns = implode(',',$columns); $query = "SELECT $columns FROM $tables WHERE $where"; return $query; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F1leA
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, 'asd%2Csadsa%2Csdaad'
   18     1        INIT_FCALL_BY_NAME                                       'query_columns'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              'adss'
          4        SEND_VAL_EX                                              'ard+%3D+%271%27+and+try+%3D+%2712%27'
          5        DO_FCALL                                      0  $2      
          6        ECHO                                                     $2
   42     7      > RETURN                                                   1

Function query_columns:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F1leA
function name:  query_columns
number of ops:  12
compiled vars:  !0 = $columns, !1 = $tables, !2 = $where, !3 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   31     3        ROPE_INIT                                     6  ~5      'SELECT+'
          4        ROPE_ADD                                      1  ~5      ~5, !0
          5        ROPE_ADD                                      2  ~5      ~5, '+FROM+'
          6        ROPE_ADD                                      3  ~5      ~5, !1
          7        ROPE_ADD                                      4  ~5      ~5, '+WHERE+'
          8        ROPE_END                                      5  ~4      ~5, !2
          9        ASSIGN                                                   !3, ~4
   33    10      > RETURN                                                   !3
   36    11*     > RETURN                                                   null

End of function query_columns

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.63 ms | 1393 KiB | 13 Q