3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "2014-09-23 08:00:00"; $dia_inicio = date('d', strtotime($data)); $mes_inicio = (int)date('n', strtotime($data)); echo $mes_inicio;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gpqp1
function name:  (null)
number of ops:  20
compiled vars:  !0 = $data, !1 = $dia_inicio, !2 = $mes_inicio
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-09-23+08%3A00%3A00'
    4     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'd'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    5     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'n'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        CAST                                          4  ~9      $8
         17        ASSIGN                                                   !2, ~9
    7    18        ECHO                                                     !2
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.76 ms | 1395 KiB | 17 Q