3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.73 ms | 1398 KiB | 17 Q