3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
147.16 ms | 1472 KiB | 15 Q