3v4l.org

run code in 300+ PHP versions simultaneously
<?php $adv = True; $licnum = 'L123'; if ($adv &! preg_match("/^P/", $licnum)){ echo "yes"; }else{ echo "No"; }
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/tvAfM
function name:  (null)
number of ops:  13
compiled vars:  !0 = $adv, !1 = $licnum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        ASSIGN                                                   !1, 'L123'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%5EP%2F'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        BOOL_NOT                                         ~5      $4
          7        BW_AND                                           ~6      !0, ~5
          8      > JMPZ                                                     ~6, ->11
    5     9    >   ECHO                                                     'yes'
         10      > JMP                                                      ->12
    7    11    >   ECHO                                                     'No'
    8    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.46 ms | 1385 KiB | 15 Q