3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { static function __callStatic(string $f, array $args) { var_export(unserialize($f) + ['args' => $args]); } } ['C', serialize(['service' => 'xyz', 'method' => 'foo'])](5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kPUuQ
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_ARRAY                                       ~0      'C'
          1        INIT_FCALL                                               'serialize'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $1      
          4        ADD_ARRAY_ELEMENT                                ~0      $1
          5        INIT_DYNAMIC_CALL                                        ~0
          6        SEND_VAL_EX                                              5
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class C:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kPUuQ
function name:  __callStatic
number of ops:  11
compiled vars:  !0 = $f, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_FCALL                                               'var_export'
          3        INIT_FCALL                                               'unserialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        INIT_ARRAY                                       ~3      !1, 'args'
          7        ADD                                              ~4      $2, ~3
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    6    10      > RETURN                                                   null

End of function __callstatic

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.88 ms | 1434 KiB | 16 Q