3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ts = strtotime('yesterday 22:30', 1369260000); var_dump($ts); $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/mem64
function name:  (null)
number of ops:  20
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        SEND_VAL                                                 1369260000
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    5     8        NEW                                              $5      'DateTime'
          9        CONCAT                                           ~6      '%40', !0
         10        SEND_VAL_EX                                              ~6
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $5
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_METHOD_CALL                                         !1, 'format'
         15        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         16        DO_FCALL                                      0  $9      
         17        SEND_VAR                                                 $9
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.77 ms | 1395 KiB | 17 Q