3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds = 10; $dtF = new DateTime("@0"); $dtT = new DateTime("@" . $seconds); return $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/Tpqk5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $seconds, !1 = $dtF, !2 = $dtT
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    5     1        NEW                                              $4      'DateTime'
          2        SEND_VAL_EX                                              '%400'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    6     5        NEW                                              $7      'DateTime'
          6        CONCAT                                           ~8      '%40', !0
          7        SEND_VAL_EX                                              ~8
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !2, $7
    7    10        INIT_METHOD_CALL                                         !1, 'diff'
         11        SEND_VAR_EX                                              !2
         12        DO_FCALL                                      0  $11     
         13        INIT_METHOD_CALL                                         $11, 'format'
         14        SEND_VAL_EX                                              '%25a+days%2C+%25h+hours%2C+%25i+minutes+and+%25s+seconds'
         15        DO_FCALL                                      0  $12     
         16      > RETURN                                                   $12
         17*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.71 ms | 1393 KiB | 13 Q