3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.03 ms | 1392 KiB | 13 Q