3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date("N") - 1 < 1 ? 7 : date("N") - 1;
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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o3auq
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'N'
          2        DO_ICALL                                         $0      
          3        SUB                                              ~1      $0, 1
          4        IS_SMALLER                                               ~1, 1
          5      > JMPZ                                                     ~2, ->8
          6    >   QM_ASSIGN                                        ~3      7
          7      > JMP                                                      ->13
          8    >   INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'N'
         10        DO_ICALL                                         $4      
         11        SUB                                              ~5      $4, 1
         12        QM_ASSIGN                                        ~3      ~5
         13    >   ECHO                                                     ~3
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.78 ms | 1394 KiB | 15 Q