3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('NULL','hello world'); define('True','hello world'); $a; if($a==NULL){ echo 'ok'; }else{ echo 'bad'; } ?>
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/Y9YHl
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'NULL'
          2        SEND_VAL                                                 'hello+world'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'True'
          6        SEND_VAL                                                 'hello+world'
          7        DO_ICALL                                                 
    5     8        IS_EQUAL                                                 !0, null
          9      > JMPZ                                                     ~3, ->12
    6    10    >   ECHO                                                     'ok'
         11      > JMP                                                      ->13
    8    12    >   ECHO                                                     'bad'
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.75 ms | 1394 KiB | 15 Q