3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.48 ms | 1394 KiB | 13 Q