3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
14.32 ms | 410 KiB | 7 Q