3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Magic {public function __call($metod, $args=null){return $this;}} spl_autoload_register(function($c) { eval("class $c extends Magic {};"); }); (new Foo)->bar()->baz();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iEQPj
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FiEQPj%3A5%240'
    7     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    9     4        NEW                                              $2      'Foo'
          5        DO_FCALL                                      0          
          6        INIT_METHOD_CALL                                         $2, 'bar'
          7        DO_FCALL                                      0  $4      
          8        INIT_METHOD_CALL                                         $4, 'baz'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FiEQPj%3A5%240

Class Magic:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iEQPj
function name:  __call
number of ops:  5
compiled vars:  !0 = $metod, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        FETCH_THIS                                       ~2      
          3      > RETURN                                                   ~2
          4*     > RETURN                                                   null

End of function __call

End of class Magic.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.89 ms | 1388 KiB | 15 Q