3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Now $time = time(); // Date you want $date = new DateTime('2014-09-18'); $newTime = $date->format('U'); echo ($time - $newTime) * 1000;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0v4mh
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
   10    11        SUB                                              ~10     !0, !2
         12        MUL                                              ~11     ~10, 1000
         13        ECHO                                                     ~11
   11    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.59 ms | 939 KiB | 16 Q