3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vQjM0
function name:  (null)
number of ops:  21
compiled vars:  !0 = $b, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'define'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'A'
          6        SEND_VAL                                                 100
          7        DO_ICALL                                                 
    7     8        ASSIGN                                                   !1, 'define'
    9     9        INIT_DYNAMIC_CALL                                        !1
         10        SEND_VAL_EX                                              'B'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0          
   13    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'method_exists'
         15        SEND_VAL                                                 'A'
         16        SEND_VAL                                                 '__constructor'
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.02 ms | 1395 KiB | 21 Q