3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array('foobar'); $attributes = array('class' => 'control-label'); if ($foo) { echo '1'; $attributes = array_merge($foo, $attributes); } var_dump($attributes);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/Xrd5Q
function name:  (null)
number of ops:  13
compiled vars:  !0 = $foo, !1 = $attributes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2      > JMPZ                                                     !0, ->9
    6     3    >   ECHO                                                     '1'
    7     4        INIT_FCALL                                               'array_merge'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
   10     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.46 ms | 1385 KiB | 17 Q