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){ echo $class;exit; }); 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/1Clna
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%2F1Clna%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%2F1Clna%3A7%241'
    9     6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   11     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
   18     9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F1Clna%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1Clna
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%2F1Clna%3A2%240

Function %00%7Bclosure%7D%2Fin%2F1Clna%3A7%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/1Clna
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ECHO                                                     !0
          2      > EXIT                                                     
    9     3*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.27 ms | 1396 KiB | 17 Q