3v4l.org

run code in 300+ 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:  17
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        INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '%2C+'
          6        SEND_VAR                                                 !3
          7        DO_ICALL                                         $10     
          8        ASSIGN                                                   !4, $10
    8     9        ROPE_INIT                                     3  ~13     '%24map+%3D+array_map%28null%2C+'
         10        ROPE_ADD                                      1  ~13     ~13, !4
         11        ROPE_END                                      2  ~12     ~13, '%29%3B'
         12        INCLUDE_OR_EVAL                                          ~12, EVAL
    9    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !5
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.64 ms | 1002 KiB | 15 Q