3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_seance = "2014-12-19 12:00"; $date_assign = date_create_from_format("Y-m-d H:i",$date_seance); print_r($date_assign); $new_date = date_create($date_seance); print_r($new_date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1WVGv
function name:  (null)
number of ops:  17
compiled vars:  !0 = $date_seance, !1 = $date_assign, !2 = $new_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2014-12-19+12%3A00'
    3     1        INIT_FCALL                                               'date_create_from_format'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'date_create'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    6    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.52 ms | 1399 KiB | 19 Q