3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $where = 'haha'; echo ($where != '' AND count($where) >=1) ? " WHERE ".implode(" ", $where) : 'fuck';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/VNSTI
function name:  (null)
number of ops:  17
compiled vars:  !0 = $where
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 'haha'
   3     1        IS_NOT_EQUAL                                     ~2      !0, ''
         2      > JMPZ_EX                                          ~2      ~2, ->6
         3    >   COUNT                                            ~3      !0
         4        IS_SMALLER_OR_EQUAL                              ~4      1, ~3
         5        BOOL                                             ~2      ~4
         6    > > JMPZ                                                     ~2, ->14
         7    >   INIT_FCALL                                               'implode'
         8        SEND_VAL                                                 '+'
         9        SEND_VAR                                                 !0
        10        DO_ICALL                                         $5      
        11        CONCAT                                           ~6      '+WHERE+', $5
        12        QM_ASSIGN                                        ~7      ~6
        13      > JMP                                                      ->15
        14    >   QM_ASSIGN                                        ~7      'fuck'
        15    >   ECHO                                                     ~7
        16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0