3v4l.org

run code in 300+ PHP versions simultaneously
<?php use \DateTime; $date = '2015-10-10 10:10:10'; $from = DateTime::createFromFormat("%Y-%m-%d %H:%i:%s",$date); echo $from ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lk3eT
function name:  (null)
number of ops:  8
compiled vars:  !0 = $date, !1 = $from
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2015-10-10+10%3A10%3A10'
    4     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 '%25Y-%25m-%25d+%25H%3A%25i%3A%25s'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
    6     6        ECHO                                                     !1
    7     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.79 ms | 1392 KiB | 13 Q