3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.66 ms | 1627 KiB | 14 Q