3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.45 ms | 1393 KiB | 13 Q