3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.37 ms | 1394 KiB | 15 Q