3v4l.org

run code in 300+ PHP versions simultaneously
<?php function show_spanish($n, $m) { return ("Nomor $n di spanyol disebut dengan $m"); } function map_spanish($n, $m) { return (array($n => $m)); } $off == array( array("1" => "uno"), array("2" => "dos"), array("3" => "tres"), array("4" => "cuatro"), array("5" => "cinco") ); $c = array_map("show_spanish", $off); print_r($c); $d = array_map("map_spanish", $off); print_r($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bTJPn
function name:  (null)
number of ops:  19
compiled vars:  !0 = $off, !1 = $c, !2 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   IS_EQUAL                                         ~3      !0, <array>
          1        FREE                                                     ~3
   20     2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 'show_spanish'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
   21     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   23    10        INIT_FCALL                                               'array_map'
         11        SEND_VAL                                                 'map_spanish'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !2, $7
   24    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Function show_spanish:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bTJPn
function name:  show_spanish
number of ops:  8
compiled vars:  !0 = $n, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ROPE_INIT                                     4  ~3      'Nomor+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '+di+spanyol+disebut+dengan+'
          5        ROPE_END                                      3  ~2      ~3, !1
          6      > RETURN                                                   ~2
    5     7*     > RETURN                                                   null

End of function show_spanish

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

End of function map_spanish

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.33 ms | 1396 KiB | 17 Q