3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = new DateTimeImmutable('2013-01-31'); $current = $start->modify("next month"); echo $current->format('n');
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/JFV3a
function name:  (null)
number of ops:  13
compiled vars:  !0 = $start, !1 = $current
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   NEW                                              $2      :-6
         1        SEND_VAL_EX                                              '2013-01-31'
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
   5     4        INIT_METHOD_CALL                                         !0, 'modify'
         5        SEND_VAL_EX                                              'next+month'
         6        DO_FCALL                                      0  $5      
         7        ASSIGN                                                   !1, $5
   6     8        INIT_METHOD_CALL                                         !1, 'format'
         9        SEND_VAL_EX                                              'n'
        10        DO_FCALL                                      0  $7      
        11        ECHO                                                     $7
        12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0