3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ints = range(0,100); function incr($i) { return $i+1; } $intz=[]; $intz = array_map('incr', $ints);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rZuse
function name:  (null)
number of ops:  12
compiled vars:  !0 = $ints, !1 = $intz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 100
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    6     5        ASSIGN                                                   !1, <array>
    7     6        INIT_FCALL                                               'array_map'
          7        SEND_VAL                                                 'incr'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
         11      > RETURN                                                   1

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

End of function incr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.38 ms | 1399 KiB | 17 Q