3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.38 ms | 1432 KiB | 13 Q