3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = 'SELECT * FROM some_table WHERE'; $a1 = array("1","2","3"); $a2 = array("a"); $a3 = array(); echo "a1 is: $query implode('AND',$a1)";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Boa9D
function name:  (null)
number of ops:  11
compiled vars:  !0 = $query, !1 = $a1, !2 = $a2, !3 = $a3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'SELECT+%2A+FROM+some_table+WHERE'
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, <array>
    5     3        ASSIGN                                                   !3, <array>
    7     4        ROPE_INIT                                     5  ~9      'a1+is%3A+'
          5        ROPE_ADD                                      1  ~9      ~9, !0
          6        ROPE_ADD                                      2  ~9      ~9, '+implode%28%27AND%27%2C'
          7        ROPE_ADD                                      3  ~9      ~9, !1
          8        ROPE_END                                      4  ~8      ~9, '%29'
          9        ECHO                                                     ~8
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.07 ms | 1392 KiB | 13 Q