3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr, $errfile, $errline){ echo $errstr; $myclass = new MyClass; }); spl_autoload_register(function($class){ var_dump($class); return eval("class $class{}"); }); eval(' class MyConcrete extends MyAbstract { public static function createInstance() {} } abstract class MyAbstract { public abstract static function createInstance(); } ');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GUmqQ
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FGUmqQ%3A2%240'
    5     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'spl_autoload_register'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FGUmqQ%3A7%241'
   10     6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   12     8        INCLUDE_OR_EVAL                                          '%0A%09class+MyConcrete+extends+MyAbstract+%7B%0A%09%09public+static+function+createInstance%28%29+%7B%7D%0A%09%7D%0A%09abstract+class+MyAbstract+%7B%0A%09%09public+abstract+static+function+createInstance%28%29%3B%0A%09%7D%0A', EVAL
   19     9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FGUmqQ%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GUmqQ
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline, !4 = $myclass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    3     4        ECHO                                                     !1
    4     5        NEW                                              $5      'MyClass'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !4, $5
    5     8      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FGUmqQ%3A2%240

Function %00%7Bclosure%7D%2Fin%2FGUmqQ%3A7%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GUmqQ
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    9     4        ROPE_INIT                                     3  ~3      'class+'
          5        ROPE_ADD                                      1  ~3      ~3, !0
          6        ROPE_END                                      2  ~2      ~3, '%7B%7D'
          7        INCLUDE_OR_EVAL                                  $5      ~2, EVAL
          8      > RETURN                                                   $5
   10     9*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FGUmqQ%3A7%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.63 ms | 1396 KiB | 19 Q