3v4l.org

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

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

End of function adda

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.57 ms | 3363 KiB | 16 Q