3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('NULL','hello world'); define('True','hello world'); echo True; echo 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 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EngNf
function name:  (null)
number of ops:  16
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        ECHO                                                     <true>
    5     9        ECHO                                                     null
    7    10        IS_EQUAL                                                 !0, null
         11      > JMPZ                                                     ~3, ->14
    8    12    >   ECHO                                                     'ok'
         13      > JMP                                                      ->15
   10    14    >   ECHO                                                     'bad'
   12    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.01 ms | 1394 KiB | 15 Q