3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch((new \DateTime())->format('d m')){ case '07 01'; echo "International Programmers' Day!"; break; case '13 09': echo "International Programmers' Day!!"; break; default: echo 'Happy 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/LA9mN
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     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, [ '07+01':->11, '13+09':->13, ], ->15
    5     6    >   CASE                                                     $2, '07+01'
          7      > JMPNZ                                                    ~3, ->11
    8     8    >   CASE                                                     $2, '13+09'
          9      > JMPNZ                                                    ~3, ->13
         10    > > JMP                                                      ->15
    6    11    >   ECHO                                                     'International+Programmers%27+Day%21'
    7    12      > JMP                                                      ->16
    9    13    >   ECHO                                                     'International+Programmers%27+Day%21%21'
   10    14      > JMP                                                      ->16
   13    15    >   ECHO                                                     'Happy+Today%21%21%21'
         16    >   FREE                                                     $2
   14    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.86 ms | 1394 KiB | 13 Q