3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = time(); $format = "\\Fm\0 j, Y"; var_dump( $format ); var_dump( explode( "\0", date( $format, $time ) ) ); $dt = new DateTime( '@' . $time ); var_dump( explode( "\0", $dt->format( $format ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sUW3b
function name:  (null)
number of ops:  34
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%00+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                                               'explode'
          9        SEND_VAL                                                 '%00'
         10        INIT_FCALL                                               'date'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                                 
    7    18        NEW                                              $10     'DateTime'
         19        CONCAT                                           ~11     '%40', !0
         20        SEND_VAL_EX                                              ~11
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !2, $10
    8    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'explode'
         25        SEND_VAL                                                 '%00'
         26        INIT_METHOD_CALL                                         !2, 'format'
         27        SEND_VAR_EX                                              !1
         28        DO_FCALL                                      0  $14     
         29        SEND_VAR                                                 $14
         30        DO_ICALL                                         $15     
         31        SEND_VAR                                                 $15
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.97 ms | 1396 KiB | 21 Q