3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'December 4, 2012'; $date = DateTime::createFromFormat('F j, Y', $user_input); echo $date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X0W1W
function name:  (null)
number of ops:  8
compiled vars:  !0 = $input, !1 = $date, !2 = $user_input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'December+4%2C+2012'
    3     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'F+j%2C+Y'
          3        SEND_VAR                                                 !2
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !1, $4
    4     6        ECHO                                                     !1
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.31 ms | 1392 KiB | 13 Q