3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expires_at = DateTime::createFromFormat("Y-m-d H:i:s", "2014-08-14 13:22:22"); $now = new DateTime(); //$interval = $now.diff($expires_at); echo ( $expires_at->format("Y-m-d H:i:s") );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uM2Up
function name:  (null)
number of ops:  13
compiled vars:  !0 = $expires_at, !1 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          2        SEND_VAL                                                 '2014-08-14+13%3A22%3A22'
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    3     5        NEW                                              $4      'DateTime'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $4
    6     8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         10        DO_FCALL                                      0  $7      
         11        ECHO                                                     $7
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.49 ms | 1392 KiB | 13 Q