3v4l.org

run code in 300+ PHP versions simultaneously
<?php $then = '09:02:23'; $then = new DateTime($then); $now = '10:20:23'; $now = new DateTime($now); $sinceThen = $then->diff($now); //Combined echo $sinceThen->h.':'.$sinceThen->i;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J1oXZ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $then, !1 = $now, !2 = $sinceThen
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '09%3A02%3A23'
    3     1        NEW                                              $4      'DateTime'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $4
    5     5        ASSIGN                                                   !1, '10%3A20%3A23'
    6     6        NEW                                              $8      'DateTime'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $8
    8    10        INIT_METHOD_CALL                                         !0, 'diff'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $11     
         13        ASSIGN                                                   !2, $11
   12    14        FETCH_OBJ_R                                      ~13     !2, 'h'
         15        CONCAT                                           ~14     ~13, '%3A'
         16        FETCH_OBJ_R                                      ~15     !2, 'i'
         17        CONCAT                                           ~16     ~14, ~15
         18        ECHO                                                     ~16
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.77 ms | 1398 KiB | 13 Q