3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch ($value = 'true') { case $value == 0; echo 'nope'; case $value == 'true'; echo 'TRUE'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hLvLv
function name:  (null)
number of ops:  12
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~1      !0, 'true'
    4     1        IS_EQUAL                                         ~3      !0, 0
          2        CASE                                                     ~1, ~3
          3      > JMPNZ                                                    ~2, ->8
    6     4    >   IS_EQUAL                                         ~4      !0, 'true'
          5        CASE                                                     ~1, ~4
          6      > JMPNZ                                                    ~2, ->9
          7    > > JMP                                                      ->10
    5     8    >   ECHO                                                     'nope'
    7     9    >   ECHO                                                     'TRUE'
         10    >   FREE                                                     ~1
    8    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.47 ms | 1393 KiB | 13 Q