3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("DEFINE",1); define("HELLO", 'this_exists'); define("this_doesnt_exist", "HELLO"); $var = 12349394; $vvar = "this_doesnt_exist"; var_dump( defined("DEFINE"), defined(DEFINE), defined($var), defined("Hi"), $var, DEFINE, defined("HELLO"), defined(this_doesnt_exist), defined($vvar) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2EaS7
function name:  (null)
number of ops:  44
compiled vars:  !0 = $var, !1 = $vvar
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        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'HELLO'
          6        SEND_VAL                                                 'this_exists'
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'this_doesnt_exist'
         10        SEND_VAL                                                 'HELLO'
         11        DO_ICALL                                                 
   10    12        ASSIGN                                                   !0, 12349394
   11    13        ASSIGN                                                   !1, 'this_doesnt_exist'
   13    14        INIT_FCALL                                               'var_dump'
   14    15        DEFINED                                          ~7      'DEFINE'
         16        SEND_VAL                                                 ~7
   15    17        INIT_FCALL                                               'defined'
         18        FETCH_CONSTANT                                   ~8      'DEFINE'
         19        SEND_VAL                                                 ~8
         20        DO_ICALL                                         $9      
         21        SEND_VAR                                                 $9
   16    22        INIT_FCALL                                               'defined'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $10     
         25        SEND_VAR                                                 $10
   18    26        DEFINED                                          ~11     'Hi'
         27        SEND_VAL                                                 ~11
   20    28        SEND_VAR                                                 !0
   21    29        FETCH_CONSTANT                                   ~12     'DEFINE'
         30        SEND_VAL                                                 ~12
   23    31        DEFINED                                          ~13     'HELLO'
         32        SEND_VAL                                                 ~13
   24    33        INIT_FCALL                                               'defined'
         34        FETCH_CONSTANT                                   ~14     'this_doesnt_exist'
         35        SEND_VAL                                                 ~14
         36        DO_ICALL                                         $15     
         37        SEND_VAR                                                 $15
   25    38        INIT_FCALL                                               'defined'
         39        SEND_VAR                                                 !1
         40        DO_ICALL                                         $16     
         41        SEND_VAR                                                 $16
         42        DO_ICALL                                                 
   27    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.22 ms | 941 KiB | 20 Q