3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = new DateTime('2015-12-10 09:00:00'); $diff = $c->diff(new DateTime('2015-12-11 10:00:00')); var_dump($diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YRFE6
function name:  (null)
number of ops:  15
compiled vars:  !0 = $c, !1 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2015-12-10+09%3A00%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'diff'
          5        NEW                                              $5      'DateTime'
          6        SEND_VAL_EX                                              '2015-12-11+10%3A00%3A00'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $5
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                                   !1, $7
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
203.36 ms | 1398 KiB | 15 Q