3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dat = new DateTime(); $date_format = "d.m.Y H:i:s"; $dat = $dat->format($date_format); $che = date($date_format, strtotime('31.05.2013 23:59:59')); echo $dat.'<br>'; echo $che;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u4F7O
function name:  (null)
number of ops:  20
compiled vars:  !0 = $dat, !1 = $date_format, !2 = $che
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN                                                   !1, 'd.m.Y+H%3Ai%3As'
    4     4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $7      
          7        ASSIGN                                                   !0, $7
    5     8        INIT_FCALL                                               'date'
          9        SEND_VAR                                                 !1
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '31.05.2013+23%3A59%3A59'
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !2, $10
    6    16        CONCAT                                           ~12     !0, '%3Cbr%3E'
         17        ECHO                                                     ~12
    7    18        ECHO                                                     !2
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.45 ms | 1395 KiB | 17 Q