3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.49 ms | 1394 KiB | 17 Q