3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.26 ms | 1010 KiB | 15 Q