3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=12; $year=2014; $thisDate = strtotime('last day of this month ',strtotime($year.'/'.$month.'/1')); echo date('Y-m-d',$thisDate);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hKn6H
function name:  (null)
number of ops:  19
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        SEND_VAL                                                 'last+day+of+this+month+'
          4        INIT_FCALL                                               'strtotime'
          5        CONCAT                                           ~5      !1, '%2F'
          6        CONCAT                                           ~6      ~5, !0
          7        CONCAT                                           ~7      ~6, '%2F1'
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
    7    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $11     
         17        ECHO                                                     $11
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.18 ms | 1394 KiB | 17 Q