3v4l.org

run code in 300+ PHP versions simultaneously
<?php $qqlQueryOrMetric = " select * fro somethings"; $match = preg_match('/select.*from/', strtolower($qqlQueryOrMetric)); if ($match) { echo "yes"; } else { echo "no";}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b9vbW
function name:  (null)
number of ops:  14
compiled vars:  !0 = $qqlQueryOrMetric, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+select++++%2A+fro+somethings'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2Fselect.%2Afrom%2F'
          3        INIT_FCALL                                               'strtolower'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    7     9      > JMPZ                                                     !1, ->12
         10    >   ECHO                                                     'yes'
         11      > JMP                                                      ->13
         12    >   ECHO                                                     'no'
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.14 ms | 1394 KiB | 17 Q