3v4l.org

run code in 500+ PHP versions simultaneously
<?php $d = '9 March, 2015'; echo date_create_from_format('d F, Y', $d)->format('Y-m-d');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s8EHi
function name:  (null)
number of ops:  10
compiled vars:  !0 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '9+March%2C+2015'
    5     1        INIT_FCALL                                                   'date_create_from_format'
          2        SEND_VAL                                                     'd+F%2C+Y'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $2      
          5        INIT_METHOD_CALL                                             $2, 'format'
          6        SEND_VAL_EX                                                  'Y-m-d'
          7        DO_FCALL                                          0  $3      
          8        ECHO                                                         $3
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
211.99 ms | 2101 KiB | 14 Q