3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public static function f() { array_map( 'self::__p', array(array('a')) ); } protected static function __p($a) { return array_map('self::_p', $a); } protected static function _p($a) { echo $a; return $a; } } C::f();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kPbWv
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_STATIC_METHOD_CALL                                  'C', 'f'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class C:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kPbWv
function name:  f
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'array_map'
    6     1        SEND_VAL                                                 'self%3A%3A__p'
    7     2        SEND_VAL                                                 <array>
          3        DO_ICALL                                                 
    9     4      > RETURN                                                   null

End of function f

Function __p:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kPbWv
function name:  __p
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'self%3A%3A_p'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
   13     6*     > RETURN                                                   null

End of function __p

Function _p:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kPbWv
function name:  _p
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   16     1        ECHO                                                     !0
   17     2      > RETURN                                                   !0
   18     3*     > RETURN                                                   null

End of function _p

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.62 ms | 1396 KiB | 15 Q