3v4l.org

run code in 500+ PHP versions simultaneously
<?php $time = "22-04-2018 17:34"; $format = "d-m-Y H:i"; $dt = date_create_from_format ($format , $time); Echo date_timestamp_get($dt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eWdWN
function name:  (null)
number of ops:  12
compiled vars:  !0 = $time, !1 = $format, !2 = $dt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '22-04-2018+17%3A34'
    4     1        ASSIGN                                                       !1, 'd-m-Y+H%3Ai'
    7     2        INIT_FCALL                                                   'date_create_from_format'
          3        SEND_VAR                                                     !1
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $5      
          6        ASSIGN                                                       !2, $5
    9     7        INIT_FCALL                                                   'date_timestamp_get'
          8        SEND_VAR                                                     !2
          9        DO_ICALL                                             $7      
         10        ECHO                                                         $7
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.44 ms | 3256 KiB | 15 Q