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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tdd2d
function name:  (null)
number of ops:  16
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        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.65 ms | 1394 KiB | 15 Q