3v4l.org

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

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

End of function arraytest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.65 ms | 1395 KiB | 17 Q