3v4l.org

run code in 300+ PHP versions simultaneously
<? //In case you are wondering 'echo' is very similar to 'print' $salary = 100000; switch ($salary) { case ($salary < 25000): echo "You have no chance"; break; case ($salary < 50000): echo "Are you in shape?"; break; case ($salary <= 100000): echo "Gold dig it up!"; break; case ($salary < 250000): echo "Facebook or Twitter Stock Options?"; break; print 'default'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
filename:       /in/LEpEc
function name:  (null)
number of ops:  24
compiled vars:  !0 = $salary
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 100000
    6     1        IS_SMALLER                                       ~3      !0, 25000
          2        IS_EQUAL                                                 !0, ~3
          3      > JMPNZ                                                    ~2, ->14
    9     4    >   IS_SMALLER                                       ~4      !0, 50000
          5        IS_EQUAL                                                 !0, ~4
          6      > JMPNZ                                                    ~2, ->16
   12     7    >   IS_SMALLER_OR_EQUAL                              ~5      !0, 100000
          8        IS_EQUAL                                                 !0, ~5
          9      > JMPNZ                                                    ~2, ->18
   15    10    >   IS_SMALLER                                       ~6      !0, 250000
         11        IS_EQUAL                                                 !0, ~6
         12      > JMPNZ                                                    ~2, ->20
         13    > > JMP                                                      ->23
    7    14    >   ECHO                                                     'You+have+no+chance'
    8    15      > JMP                                                      ->23
   10    16    >   ECHO                                                     'Are+you+in+shape%3F'
   11    17      > JMP                                                      ->23
   13    18    >   ECHO                                                     'Gold+dig+it+up%21'
   14    19      > JMP                                                      ->23
   16    20    >   ECHO                                                     'Facebook+or+Twitter+Stock+Options%3F'
   17    21      > JMP                                                      ->23
   18    22*       ECHO                                                     'default'
   19    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.4 ms | 1395 KiB | 13 Q