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

End of function getlastday

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.47 ms | 1389 KiB | 18 Q