3v4l.org

run code in 300+ PHP versions simultaneously
<?php $song = array(); if ($song['t'] == true) { echo 'true'; } else if ($song['t'] == false) { echo 'false'; } else { echo 'neither'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e9ueg
function name:  (null)
number of ops:  13
compiled vars:  !0 = $song
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~2      !0, 't'
          2        BOOL                                             ~3      ~2
          3      > JMPZ                                                     ~3, ->6
    6     4    >   ECHO                                                     'true'
          5      > JMP                                                      ->12
    7     6    >   FETCH_DIM_R                                      ~4      !0, 't'
          7        BOOL_NOT                                         ~5      ~4
          8      > JMPZ                                                     ~5, ->11
    8     9    >   ECHO                                                     'false'
         10      > JMP                                                      ->12
   10    11    >   ECHO                                                     'neither'
   11    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.9 ms | 1393 KiB | 13 Q