3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.95 ms | 1397 KiB | 13 Q