3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.52 ms | 1459 KiB | 14 Q