3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (0) echo 3; $b = (function_exists('define')); define('A', 100); $f = 'define'; $f('B', $f); class A { } var_dump(method_exists('A', '__constructor'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 2
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
filename:       /in/Akah4
function name:  (null)
number of ops:  23
compiled vars:  !0 = $b, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     0, ->2
          1    >   ECHO                                                     3
    5     2    >   INIT_FCALL                                               'function_exists'
          3        SEND_VAL                                                 'define'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    7     6        INIT_FCALL                                               'define'
          7        SEND_VAL                                                 'A'
          8        SEND_VAL                                                 100
          9        DO_ICALL                                                 
    9    10        ASSIGN                                                   !1, 'define'
   11    11        INIT_DYNAMIC_CALL                                        !1
         12        SEND_VAL_EX                                              'B'
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0          
   15    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'method_exists'
         17        SEND_VAL                                                 'A'
         18        SEND_VAL                                                 '__constructor'
         19        DO_ICALL                                         $7      
         20        SEND_VAR                                                 $7
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.71 ms | 1395 KiB | 21 Q