3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 8; switch('SOMEARBITRARYNOTHINGNESS') { case ($a > 10): var_dump('Greater than 10'); break; case ($a < 10): var_dump('Less than 10'); break; default: var_dump('Is 10'); }
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 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
filename:       /in/R5LND
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 8
    6     1        IS_SMALLER                                       ~3      10, !0
          2        IS_EQUAL                                                 ~3, 'SOMEARBITRARYNOTHINGNESS'
          3      > JMPNZ                                                    ~2, ->8
    9     4    >   IS_SMALLER                                       ~4      !0, 10
          5        IS_EQUAL                                                 ~4, 'SOMEARBITRARYNOTHINGNESS'
          6      > JMPNZ                                                    ~2, ->12
          7    > > JMP                                                      ->16
    7     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 'Greater+than+10'
         10        DO_ICALL                                                 
    8    11      > JMP                                                      ->19
   10    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAL                                                 'Less+than+10'
         14        DO_ICALL                                                 
   11    15      > JMP                                                      ->19
   13    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAL                                                 'Is+10'
         18        DO_ICALL                                                 
   14    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.95 ms | 1395 KiB | 15 Q