3v4l.org

run code in 500+ PHP versions simultaneously
<?php $endDate = new DateTime('01-01-'.date('Y')); echo $endDate; // 2017-01-01
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CNEvL
function name:  (null)
number of ops:  10
compiled vars:  !0 = $endDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DateTime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y'
          3        DO_ICALL                                         $2      
          4        CONCAT                                           ~3      '01-01-', $2
          5        SEND_VAL_EX                                              ~3
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $1
    3     8        ECHO                                                     !0
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.85 ms | 1885 KiB | 14 Q