3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch((new \DateTime())->format('d m')){ case '25 12'; echo "Merry Christmas"; break; case '14 02': echo "Happy Valentines Day!"; break; default: echo 'No Holiday Today'; }
Finding entry points
Branch analysis from position: 0
4 jumps found. (Code = 188) Position 1 = 11, Position 2 = 13, Position 3 = 15, Position 4 = 6
Branch analysis from position: 11
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: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 13
Branch analysis from position: 11
filename:       /in/kloTc
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $0      'DateTime'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'format'
          3        SEND_VAL_EX                                              'd+m'
          4        DO_FCALL                                      0  $2      
          5      > SWITCH_STRING                                            $2, [ '25+12':->11, '14+02':->13, ], ->15
    3     6    >   CASE                                                     $2, '25+12'
          7      > JMPNZ                                                    ~3, ->11
    6     8    >   CASE                                                     $2, '14+02'
          9      > JMPNZ                                                    ~3, ->13
         10    > > JMP                                                      ->15
    4    11    >   ECHO                                                     'Merry+Christmas'
    5    12      > JMP                                                      ->16
    7    13    >   ECHO                                                     'Happy+Valentines+Day%21'
    8    14      > JMP                                                      ->16
   10    15    >   ECHO                                                     'No+Holiday+Today'
         16    >   FREE                                                     $2
   11    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.28 ms | 1385 KiB | 13 Q