3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = range(0, 15); $cubed = array(); array_walk($data, function($n) use($cubed) { $cubed[] = $n * $n * $n; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vva3j
function name:  (null)
number of ops:  13
compiled vars:  !0 = $data, !1 = $cubed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 15
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        ASSIGN                                                   !1, <array>
    5     6        INIT_FCALL                                               'array_walk'
          7        SEND_REF                                                 !0
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FVva3j%3A5%240'
          9        BIND_LEXICAL                                             ~5, !1
    8    10        SEND_VAL                                                 ~5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FVva3j%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vva3j
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $n, !1 = $cubed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    7     2        MUL                                              ~3      !0, !0
          3        MUL                                              ~4      !0, ~3
          4        ASSIGN_DIM                                               !1
          5        OP_DATA                                                  ~4
    8     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FVva3j%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.1 ms | 1395 KiB | 17 Q