3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date("H:i:s Y-m-d", time()); echo "\n"; $time = time(); echo (date('w', $time) == 0) ? $time : strtotime('last sunday', $time);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UjkL2
function name:  (null)
number of ops:  26
compiled vars:  !0 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'H%3Ai%3As+Y-m-d'
          2        INIT_FCALL                                               'time'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    4     7        ECHO                                                     '%0A'
    5     8        INIT_FCALL                                               'time'
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    6    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'w'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        IS_EQUAL                                                 $5, 0
         16      > JMPZ                                                     ~6, ->19
         17    >   QM_ASSIGN                                        ~7      !0
         18      > JMP                                                      ->24
         19    >   INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 'last+sunday'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $8      
         23        QM_ASSIGN                                        ~7      $8
         24    >   ECHO                                                     ~7
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.37 ms | 1399 KiB | 19 Q