3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.6 ms | 1384 KiB | 13 Q