3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getLastDay($mes, $ano) { $data = $ano . '-' . $mes . '01'; return date('t', strtotime($data)); } echo getLastDay(02, 2011);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Nuqv
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'getlastday'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 2011
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function getlastday:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Nuqv
function name:  getLastDay
number of ops:  15
compiled vars:  !0 = $mes, !1 = $ano, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        CONCAT                                           ~3      !1, '-'
          3        CONCAT                                           ~4      ~3, !0
          4        CONCAT                                           ~5      ~4, '01'
          5        ASSIGN                                                   !2, ~5
    5     6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 't'
          8        INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                         $8      
         13      > RETURN                                                   $8
    6    14*     > RETURN                                                   null

End of function getlastday

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.25 ms | 1397 KiB | 18 Q