3v4l.org

run code in 300+ PHP versions simultaneously
<?php function days_in_month($year, $month) { return( date( "t", mktime( 0, 0, 0, $month, 1, $year) ) ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NgVfk
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   1

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

End of function days_in_month

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.82 ms | 1395 KiB | 17 Q