3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = floor(time()/86400)*86400; var_dump($a); var_dump(date('Y-m-d H:i:s', $a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aeQ1G
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'floor'
          1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $1      
          3        DIV                                              ~2      $1, 86400
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6        MUL                                              ~4      $3, 86400
          7        ASSIGN                                                   !0, ~4
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.6 ms | 1394 KiB | 21 Q