3v4l.org

run code in 500+ PHP versions simultaneously
<?php function say($n, $m) { return "The number $n is called $m in Spanish"; } function arrays() { return [ [ 1, 2, 3 ], [ 'uno', 'dos', 'tres' ], ]; } print_r( array_map('say', ...arrays()) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EOXYL
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                                   'print_r'
   13     1        INIT_FCALL                                                   'array_map'
          2        SEND_VAL                                                     'say'
          3        INIT_FCALL                                                   'arrays'
          4        DO_FCALL                                          0  $0      
          5        SEND_UNPACK                                                  $0
          6        CHECK_UNDEF_ARGS                                             
          7        DO_ICALL                                             $1      
          8        SEND_VAR                                                     $1
   12     9        DO_ICALL                                                     
   14    10      > RETURN                                                       1

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

End of function say

Function arrays:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EOXYL
function name:  arrays
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                       <array>
   11     1*     > RETURN                                                       null

End of function arrays

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
177.24 ms | 3365 KiB | 16 Q