3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch (false) { case date("m") < 013: echo 1; break; case date("m") >= 0: echo 2; break; default: echo 3; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
filename:       /in/rbb2q
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm'
          2        DO_ICALL                                         $1      
          3        IS_SMALLER                                               $1, 11
          4      > JMPZ                                                     ~2, ->11
    4     5    >   INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'm'
          7        DO_ICALL                                         $3      
          8        IS_SMALLER_OR_EQUAL                                      0, $3
          9      > JMPZ                                                     ~4, ->13
         10    > > JMP                                                      ->15
    3    11    >   ECHO                                                     1
         12      > JMP                                                      ->16
    4    13    >   ECHO                                                     2
         14      > JMP                                                      ->16
    5    15    >   ECHO                                                     3
    6    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.38 ms | 1395 KiB | 15 Q