3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date = '10/22'; echo DateTime::createFromFormat('d/m/y', '01/'.$date)->format('d-m-Y');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9kb5g
function name:  (null)
number of ops:  11
compiled vars:  !0 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '10%2F22'
    4     1        INIT_STATIC_METHOD_CALL                                      'DateTime', 'createFromFormat'
          2        SEND_VAL                                                     'd%2Fm%2Fy'
          3        CONCAT                                               ~2      '01%2F', !0
          4        SEND_VAL                                                     ~2
          5        DO_FCALL                                          0  $3      
          6        INIT_METHOD_CALL                                             $3, 'format'
          7        SEND_VAL_EX                                                  'd-m-Y'
          8        DO_FCALL                                          0  $4      
          9        ECHO                                                         $4
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.73 ms | 1848 KiB | 13 Q