3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = ['bar']; print_r(['foo' => $foo]); print_r(compact('foo'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4irUK
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'print_r'
          2        INIT_ARRAY                                       ~2      !0, 'foo'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'compact'
          7        SEND_VAL                                                 'foo'
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.63 ms | 1385 KiB | 17 Q