3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime("now"); echo $d->format("F") . PHP_EOL; $d = new DateTime("-1month"); echo $d->format("F") . PHP_EOL; $d = new DateTime("-2months"); echo $d->format("F") . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qCEfG
function name:  (null)
number of ops:  28
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAL_EX                                              'F'
          6        DO_FCALL                                      0  $4      
          7        CONCAT                                           ~5      $4, '%0A'
          8        ECHO                                                     ~5
    6     9        NEW                                              $6      'DateTime'
         10        SEND_VAL_EX                                              '-1month'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !0, $6
    7    13        INIT_METHOD_CALL                                         !0, 'format'
         14        SEND_VAL_EX                                              'F'
         15        DO_FCALL                                      0  $9      
         16        CONCAT                                           ~10     $9, '%0A'
         17        ECHO                                                     ~10
    9    18        NEW                                              $11     'DateTime'
         19        SEND_VAL_EX                                              '-2months'
         20        DO_FCALL                                      0          
         21        ASSIGN                                                   !0, $11
   10    22        INIT_METHOD_CALL                                         !0, 'format'
         23        SEND_VAL_EX                                              'F'
         24        DO_FCALL                                      0  $14     
         25        CONCAT                                           ~15     $14, '%0A'
         26        ECHO                                                     ~15
   11    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
18.43 ms | 411 KiB | 7 Q