3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr, $errfile, $errline){ echo $errstr."\n"; $myclass = new MyClass; }); spl_autoload_register(function($class){ echo $class."\n"; 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/sUURp
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%2FsUURp%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%2FsUURp%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%2FsUURp%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sUURp
function name:  {closure}
number of ops:  10
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        CONCAT                                           ~5      !1, '%0A'
          5        ECHO                                                     ~5
    4     6        NEW                                              $6      'MyClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !4, $6
    5     9      > RETURN                                                   null

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

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.25 ms | 1396 KiB | 17 Q