3v4l.org

run code in 300+ PHP versions simultaneously
<?php function lastWeekDay ($mnt) { $result = strtotime("last day of $mnt"); return $result; } echo date('d-M-Y', lastWeekDay('Apr 2013'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dUUKs
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'd-M-Y'
          2        INIT_FCALL                                               'lastweekday'
          3        SEND_VAL                                                 'Apr+2013'
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        ECHO                                                     $1
          8      > RETURN                                                   1

Function lastweekday:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dUUKs
function name:  lastWeekDay
number of ops:  9
compiled vars:  !0 = $mnt, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'strtotime'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~2      'last+day+of+', !0
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7      > RETURN                                                   !1
    6     8*     > RETURN                                                   null

End of function lastweekday

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.62 ms | 1397 KiB | 18 Q