3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo time(); echo "\n"; echo strtotime("this week"); echo "\n"; echo time()-strtotime("this week"); echo time()-(time()-strtotime("this week")); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7Xst
function name:  (null)
number of ops:  27
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $0      
          2        ECHO                                                     $0
    3     3        ECHO                                                     '%0A'
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'this+week'
          6        DO_ICALL                                         $1      
          7        ECHO                                                     $1
    5     8        ECHO                                                     '%0A'
    6     9        INIT_FCALL                                               'time'
         10        DO_ICALL                                         $2      
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 'this+week'
         13        DO_ICALL                                         $3      
         14        SUB                                              ~4      $2, $3
         15        ECHO                                                     ~4
    7    16        INIT_FCALL                                               'time'
         17        DO_ICALL                                         $5      
         18        INIT_FCALL                                               'time'
         19        DO_ICALL                                         $6      
         20        INIT_FCALL                                               'strtotime'
         21        SEND_VAL                                                 'this+week'
         22        DO_ICALL                                         $7      
         23        SUB                                              ~8      $6, $7
         24        SUB                                              ~9      $5, ~8
         25        ECHO                                                     ~9
    8    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1395 KiB | 17 Q