3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ts = strtotime('yesterday 22:30'); $dt = new DateTime($ts); var_dump($dt->format('Y-m-d H:i:s'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MWtAi
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ts, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'yesterday+22%3A30'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $4      'DateTime'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $4
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !1, 'format'
         10        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         11        DO_FCALL                                      0  $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.28 ms | 1394 KiB | 17 Q