3v4l.org

run code in 500+ PHP versions simultaneously
<?php $foo = [1, 2, 3]; $bar = ['one', 'two', 'three']; $baz = ['first','second','third']; $arrays = ['$foo', '$bar', '$baz']; $str = implode(', ', $arrays); eval("\$map = array_map(null, $str);"); print_r($map);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EAO5g
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz, !3 = $arrays, !4 = $str, !5 = $map
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        ASSIGN                                                       !1, <array>
    4     2        ASSIGN                                                       !2, <array>
    5     3        ASSIGN                                                       !3, <array>
    6     4        FRAMELESS_ICALL_2                implode             ~10     '%2C+', !3
          5        ASSIGN                                                       !4, ~10
    8     6        ROPE_INIT                                         3  ~13     '%24map+%3D+array_map%28null%2C+'
          7        ROPE_ADD                                          1  ~13     ~13, !4
          8        ROPE_END                                          2  ~12     ~13, '%29%3B'
          9        INCLUDE_OR_EVAL                                              ~12, EVAL
    9    10        INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !5
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.75 ms | 2540 KiB | 14 Q