3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val = "1118"; $date = new DateTime('midnight last day of 12 20'.$val[0].$val[1]); echo $date->format('d/m/Y H:i:s');
based on ekDa5
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gd5uR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $val, !1 = $date
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, '1118'
   3     1        NEW                                              $3      :-4
         2        FETCH_DIM_R                                      $4      !0, 0
         3        CONCAT                                           ~5      'midnight+last+day+of+12+20', $4
         4        FETCH_DIM_R                                      $6      !0, 1
         5        CONCAT                                           ~7      ~5, $6
         6        SEND_VAL_EX                                              ~7
         7        DO_FCALL                                      0          
         8        ASSIGN                                                   !1, $3
   5     9        INIT_METHOD_CALL                                         !1, 'format'
        10        SEND_VAL_EX                                              'd%2Fm%2FY+H%3Ai%3As'
        11        DO_FCALL                                      0  $10     
        12        ECHO                                                     $10
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0