3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTimeImmutable (); $resultmonth1 = $date->format("n"); $date = $date->modify("next month"); $resultmonth2 = $date->format("n"); var_dump($resultmonth1,$resultmonth2); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rqccc
function name:  (null)
number of ops:  20
compiled vars:  !0 = $date, !1 = $resultmonth1, !2 = $resultmonth2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTimeImmutable'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        INIT_METHOD_CALL                                         !0, 'format'
          4        SEND_VAL_EX                                              'n'
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !1, $6
    6     7        INIT_METHOD_CALL                                         !0, 'modify'
          8        SEND_VAL_EX                                              'next+month'
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !0, $8
    7    11        INIT_METHOD_CALL                                         !0, 'format'
         12        SEND_VAL_EX                                              'n'
         13        DO_FCALL                                      0  $10     
         14        ASSIGN                                                   !2, $10
    9    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
   10    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.11 ms | 1395 KiB | 15 Q