3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a['lol'] = 'fuu' or '0'; print_r($a); $a = array('lol' => 10/0 or '0'); print_r($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 5
filename:       /in/loj3j
function name:  (null)
number of ops:  17
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                                         ~2      ~2, ->5
          4    >   BOOL                                             ~2      '0'
    5     5    >   INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8        DIV                                              ~4      10, 0
          9      > JMPNZ_EX                                         ~4      ~4, ->11
         10    >   BOOL                                             ~4      '0'
         11    >   INIT_ARRAY                                       ~5      ~4, 'lol'
         12        ASSIGN                                                   !0, ~5
    8    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.01 ms | 1394 KiB | 15 Q