3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d=date("D"); if ($d=="Fri") echo "Have a nice weekend!"; elseif ($d=="Sun") echo "Have a nice Sunday!"; else echo "Have a nice day!"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hkKtv
function name:  (null)
number of ops:  14
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'D'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        IS_EQUAL                                                 !0, 'Fri'
          5      > JMPZ                                                     ~3, ->8
    4     6    >   ECHO                                                     'Have+a+nice+weekend%21'
          7      > JMP                                                      ->13
    5     8    >   IS_EQUAL                                                 !0, 'Sun'
          9      > JMPZ                                                     ~4, ->12
    6    10    >   ECHO                                                     'Have+a+nice+Sunday%21'
         11      > JMP                                                      ->13
    8    12    >   ECHO                                                     'Have+a+nice+day%21'
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.86 ms | 1394 KiB | 15 Q