3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Now $time = time(); // Date you want $date = new DateTime('2014-09-18'); $newTime = $date->format('U'); // Copy paste the result into the command below echo ($time - $newTime) * 1000;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYPWE
function name:  (null)
number of ops:  15
compiled vars:  !0 = $time, !1 = $date, !2 = $newTime
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'time'
          1        DO_ICALL                                             $3      
          2        ASSIGN                                                       !0, $3
    7     3        NEW                                                  $5      'DateTime'
          4        SEND_VAL_EX                                                  '2014-09-18'
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !1, $5
    8     7        INIT_METHOD_CALL                                             !1, 'format'
          8        SEND_VAL_EX                                                  'U'
          9        DO_FCALL                                          0  $8      
         10        ASSIGN                                                       !2, $8
   11    11        SUB                                                  ~10     !0, !2
         12        MUL                                                  ~11     ~10, 1000
         13        ECHO                                                         ~11
   12    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.78 ms | 1269 KiB | 14 Q