3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a['lol'] = 'fuu' or die; print_r($a); $a = array('lol' => 'fuu' or die); print_r($a); $a = array('lol' => 'fuu' and 'fee'); print_r($a);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
Jump found. Position 1 = -2
Branch analysis from position: 6
Jump found. Position 1 = -2
filename:       /in/1Qtn9
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, <array>
   4     1        ASSIGN_DIM                                       $2      !0, 'lol'
         2        OP_DATA                                                  'fuu'
         3      > JMPNZ_EX                                         ~3      $2, ->6
         4    > > EXIT                                                     
         5*       BOOL                                             ~3      <true>
         6    >   FREE                                                     ~3
   5     7        INIT_FCALL                                               'print_r'
         8        SEND_VAR                                                 !0
         9        DO_ICALL                                                 
   7    10        INIT_ARRAY                                       ~5      <true>, 'lol'
        11        ASSIGN                                                   !0, ~5
   8    12        INIT_FCALL                                               'print_r'
        13        SEND_VAR                                                 !0
        14        DO_ICALL                                                 
  10    15        ASSIGN                                                   !0, <array>
  11    16        INIT_FCALL                                               'print_r'
        17        SEND_VAR                                                 !0
        18        DO_ICALL                                                 
        19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0