3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds = '00:01:13'; echo strtotime($seconds) - time()."\n"; $dtF = new DateTime("@0"); $dtT = new DateTime("@" . $seconds); echo $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fDnTN
function name:  (null)
number of ops:  26
compiled vars:  !0 = $seconds, !1 = $dtF, !2 = $dtT
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '00%3A01%3A13'
    5     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $5      
          6        SUB                                              ~6      $4, $5
          7        CONCAT                                           ~7      ~6, '%0A'
          8        ECHO                                                     ~7
    7     9        NEW                                              $8      'DateTime'
         10        SEND_VAL_EX                                              '%400'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $8
    8    13        NEW                                              $11     'DateTime'
         14        CONCAT                                           ~12     '%40', !0
         15        SEND_VAL_EX                                              ~12
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !2, $11
    9    18        INIT_METHOD_CALL                                         !1, 'diff'
         19        SEND_VAR_EX                                              !2
         20        DO_FCALL                                      0  $15     
         21        INIT_METHOD_CALL                                         $15, 'format'
         22        SEND_VAL_EX                                              '%25a+days%2C+%25h+hours%2C+%25i+minutes+and+%25s+seconds'
         23        DO_FCALL                                      0  $16     
         24        ECHO                                                     $16
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.97 ms | 1395 KiB | 17 Q