3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = '11'; $month = Date("m", strtotime("2017-" . $month . "-01" . " +1 month")); echo $month;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IJBKU
function name:  (null)
number of ops:  14
compiled vars:  !0 = $month
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '11'
    4     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'm'
          3        INIT_FCALL                                               'strtotime'
          4        CONCAT                                           ~2      '2017-', !0
          5        CONCAT                                           ~3      ~2, '-01'
          6        CONCAT                                           ~4      ~3, '+%2B1+month'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !0, $6
    5    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.95 ms | 1436 KiB | 15 Q