3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Xoo { private function b($value) { return $value + 'xxx'; } function a() { return array_map( array($this, 'b'), array('foo', 'bar') ); } } $xoo = new Xoo; var_dump($xoo->a());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p9vch
function name:  (null)
number of ops:  9
compiled vars:  !0 = $xoo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Xoo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'a'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Xoo:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p9vch
function name:  b
number of ops:  4
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ADD                                              ~1      !0, 'xxx'
          2      > RETURN                                                   ~1
    6     3*     > RETURN                                                   null

End of function b

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p9vch
function name:  a
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'array_map'
   10     1        FETCH_THIS                                       ~0      
          2        INIT_ARRAY                                       ~1      ~0
          3        ADD_ARRAY_ELEMENT                                ~1      'b'
          4        SEND_VAL                                                 ~1
   11     5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
   13     8*     > RETURN                                                   null

End of function a

End of class Xoo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.46 ms | 1395 KiB | 17 Q