3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=12; $year=2014; $thisDate = strtotime('last day of '.$month.'/'.$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/NpUNM
function name:  (null)
number of ops:  15
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+', !0
          4        CONCAT                                           ~6      ~5, '%2F'
          5        CONCAT                                           ~7      ~6, !1
          6        SEND_VAL                                                 ~7
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !2, $8
    7     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $10     
         13        ECHO                                                     $10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.89 ms | 1394 KiB | 17 Q