3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); define('FOO', true); $result = eval('return defined("Foo");'); var_export($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yge0X
function name:  (null)
number of ops:  13
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'define'
          4        SEND_VAL                                                 'FOO'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                                 
    5     7        INCLUDE_OR_EVAL                                  $3      'return+defined%28%22Foo%22%29%3B', EVAL
          8        ASSIGN                                                   !0, $3
    6     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.84 ms | 1394 KiB | 19 Q