3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1,10,2); function change(&$value,$key,$factor){ $value = $value * $factor; } array_walk($array,'change',3); print_r($array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E9CiB
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 10
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
   10     6        INIT_FCALL                                               'array_walk'
          7        SEND_REF                                                 !0
          8        SEND_VAL                                                 'change'
          9        SEND_VAL                                                 3
         10        DO_ICALL                                                 
   12    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   15    14      > RETURN                                                   1

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

End of function change

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.79 ms | 1395 KiB | 19 Q