3v4l.org

run code in 300+ PHP versions simultaneously
<?php class VariableStream { public function __call($name, $arguments) { echo $name . "\n"; var_dump($arguments); $name = '_' . $name; if (!method_exists($this, $name)) { return false; } return $this->$name(...$arguments); } } stream_wrapper_register("var", "VariableStream"); touch("var://myvar");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UeVTQ
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'stream_wrapper_register'
          1        SEND_VAL                                                 'var'
          2        SEND_VAL                                                 'VariableStream'
          3        DO_ICALL                                                 
   18     4        INIT_FCALL                                               'touch'
          5        SEND_VAL                                                 'var%3A%2F%2Fmyvar'
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class VariableStream:
Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UeVTQ
function name:  __call
number of ops:  23
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        CONCAT                                           ~2      !0, '%0A'
          3        ECHO                                                     ~2
    7     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    8     7        CONCAT                                           ~4      '_', !0
          8        ASSIGN                                                   !0, ~4
    9     9        INIT_FCALL                                               'method_exists'
         10        FETCH_THIS                                       ~6      
         11        SEND_VAL                                                 ~6
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        BOOL_NOT                                         ~8      $7
         15      > JMPZ                                                     ~8, ->17
   10    16    > > RETURN                                                   <false>
   12    17    >   INIT_METHOD_CALL                                         !0
         18        SEND_UNPACK                                              !1
         19        CHECK_UNDEF_ARGS                                         
         20        DO_FCALL                                      1  $9      
         21      > RETURN                                                   $9
   13    22*     > RETURN                                                   null

End of function __call

End of class VariableStream.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.64 ms | 1401 KiB | 21 Q