3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('NULL','hello world'); define('True','hello world'); var_dump(True); var_dump(NULL); $a; if($a==NULL){ echo 'ok'; }else{ echo 'bad'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iURuu
function name:  (null)
number of ops:  20
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                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAL                                                 null
         13        DO_ICALL                                                 
    7    14        IS_EQUAL                                                 !0, null
         15      > JMPZ                                                     ~5, ->18
    8    16    >   ECHO                                                     'ok'
         17      > JMP                                                      ->19
   10    18    >   ECHO                                                     'bad'
   12    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.21 ms | 1386 KiB | 17 Q