3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.48 ms | 1394 KiB | 17 Q