3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1,2,3,4,5); class helper { public static function call($a) { print_r($a); } } $helper = new helper(); array_walk($array, helper::call);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PG69B
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array, !1 = $helper
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        NEW                                              $3      'helper'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   12     4        INIT_FCALL                                               'array_walk'
          5        SEND_REF                                                 !0
          6        FETCH_CLASS_CONSTANT                             ~6      'helper', 'call'
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class helper:
Function call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PG69B
function name:  call
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    8     4      > RETURN                                                   null

End of function call

End of class helper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.44 ms | 1395 KiB | 17 Q