3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = time(); $format = "\\Fm\\0 j, Y"; var_dump( $format ); var_dump( date( $format, $time ) ); $dt = new DateTime( '@' . $time ); var_dump( $dt->format( $format ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A1ZtX
function name:  (null)
number of ops:  26
compiled vars:  !0 = $time, !1 = $format, !2 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN                                                   !1, '%5CFm%5C0+j%2C+Y'
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'date'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
    7    14        NEW                                              $9      'DateTime'
         15        CONCAT                                           ~10     '%40', !0
         16        SEND_VAL_EX                                              ~10
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !2, $9
    8    19        INIT_FCALL                                               'var_dump'
         20        INIT_METHOD_CALL                                         !2, 'format'
         21        SEND_VAR_EX                                              !1
         22        DO_FCALL                                      0  $13     
         23        SEND_VAR                                                 $13
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.8 ms | 1386 KiB | 19 Q