3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 'Feb 11, 2023'; $date_format = 'Y-m-d H:i:s'; echo (new DateTime($start))->format($date_format);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RCDIJ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $start, !1 = $date_format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Feb+11%2C+2023'
    4     1        ASSIGN                                                   !1, 'Y-m-d+H%3Ai%3As'
    5     2        NEW                                              $4      'DateTime'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $4, 'format'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.48 ms | 1432 KiB | 13 Q