3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x_String { public function __call($method, $args) { return $method . ': ' . implode($args); } } $s = new x_String; echo $s->string(4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZI00m
function name:  (null)
number of ops:  8
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'x_String'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_METHOD_CALL                                         !0, 'string'
          4        SEND_VAL_EX                                              4
          5        DO_FCALL                                      0  $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Class x_String:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZI00m
function name:  __call
number of ops:  9
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        CONCAT                                           ~2      !0, '%3A+'
          3        INIT_FCALL                                               'implode'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $3      
          6        CONCAT                                           ~4      ~2, $3
          7      > RETURN                                                   ~4
    7     8*     > RETURN                                                   null

End of function __call

End of class x_String.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.42 ms | 1395 KiB | 15 Q