3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FMX4FP%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MX4FP
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'self%3A%3A_p'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
    8     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMX4FP%3A6%240

Class C:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MX4FP
function name:  f
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'array_map'
    6     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMX4FP%3A6%240'
    8     2        SEND_VAL                                                 ~0
    9     3        SEND_VAL                                                 <array>
          4        DO_ICALL                                                 
   11     5      > 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/MX4FP
function name:  _p
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        ECHO                                                     !0
   15     2      > RETURN                                                   !0
   16     3*     > RETURN                                                   null

End of function _p

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.91 ms | 1396 KiB | 15 Q