3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=12; $year=2014; $thisDate = strtotime('last day of march '.$year); echo date('Y-m-d',$thisDate);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q7Ys0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $month, !1 = $year, !2 = $thisDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 12
    3     1        ASSIGN                                                   !1, 2014
    5     2        INIT_FCALL                                               'strtotime'
          3        CONCAT                                           ~5      'last+day+of+march+', !1
          4        SEND_VAL                                                 ~5
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    7     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'Y-m-d'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        ECHO                                                     $8
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
203.58 ms | 1394 KiB | 17 Q