3v4l.org

run code in 300+ PHP versions simultaneously
<?php $epoch = "1442069337"; $dt = new DateTime("@$epoch"); echo $dt->format('Y-m-d');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/32u2p
function name:  (null)
number of ops:  12
compiled vars:  !0 = $epoch, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1442069337'
    3     1        NEW                                              $3      'DateTime'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~4      '%40', !0
          4        SEND_VAL_EX                                              ~4
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $3
    4     7        INIT_METHOD_CALL                                         !1, 'format'
          8        SEND_VAL_EX                                              'Y-m-d'
          9        DO_FCALL                                      0  $7      
         10        ECHO                                                     $7
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168 ms | 1393 KiB | 13 Q