3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.15 ms | 1394 KiB | 15 Q