3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function($classname) { if (in_array($classname, array('a','b','c'))) { require_once ($classname . '.php'); } }); set_error_handler(function ($errno, $errstr, $errfile, $errline) { }, error_reporting()); a::staticTest(); $b = new b(); $b->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YgMAb
function name:  (null)
number of ops:  19
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYgMAb%3A3%240'
    7     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    9     4        INIT_FCALL                                               'set_error_handler'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYgMAb%3A9%241'
   10     6        SEND_VAL                                                 ~3
          7        INIT_FCALL                                               'error_reporting'
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
   12    11        INIT_STATIC_METHOD_CALL                                  'a', 'staticTest'
         12        DO_FCALL                                      0          
   14    13        NEW                                              $7      'b'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !0, $7
   15    16        INIT_METHOD_CALL                                         !0, 'test'
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FYgMAb%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/YgMAb
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $classname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        IN_ARRAY                                                 !0, <array>
          2      > JMPZ                                                     ~1, ->5
    5     3    >   CONCAT                                           ~2      !0, '.php'
          4        INCLUDE_OR_EVAL                                          ~2, REQUIRE_ONCE
    7     5    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FYgMAb%3A3%240

Function %00%7Bclosure%7D%2Fin%2FYgMAb%3A9%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YgMAb
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
   10     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FYgMAb%3A9%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.3 ms | 1388 KiB | 19 Q