3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("DEFINE",1); $var = 12349394; var_dump( defined("DEFINE"), defined(DEFINE), defined($var), defined("Hi"), $var, DEFINE );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/km8rk
function name:  (null)
number of ops:  24
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DEFINE'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    6     4        ASSIGN                                                   !0, 12349394
    8     5        INIT_FCALL                                               'var_dump'
    9     6        DEFINED                                          ~3      'DEFINE'
          7        SEND_VAL                                                 ~3
   10     8        INIT_FCALL                                               'defined'
          9        FETCH_CONSTANT                                   ~4      'DEFINE'
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
   11    13        INIT_FCALL                                               'defined'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
   13    17        DEFINED                                          ~7      'Hi'
         18        SEND_VAL                                                 ~7
   15    19        SEND_VAR                                                 !0
   16    20        FETCH_CONSTANT                                   ~8      'DEFINE'
         21        SEND_VAL                                                 ~8
         22        DO_ICALL                                                 
   17    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.64 ms | 1395 KiB | 19 Q