3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = time(); $ts = new \DateTime('@1368007801'); echo $ts->format('c'); echo $now - $ts;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WPN4V
function name:  (null)
number of ops:  14
compiled vars:  !0 = $now, !1 = $ts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    4     3        NEW                                              $4      'DateTime'
          4        SEND_VAL_EX                                              '%401368007801'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $4
    5     7        INIT_METHOD_CALL                                         !1, 'format'
          8        SEND_VAL_EX                                              'c'
          9        DO_FCALL                                      0  $7      
         10        ECHO                                                     $7
    6    11        SUB                                              ~8      !0, !1
         12        ECHO                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.41 ms | 1394 KiB | 15 Q