3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 'nl_NL'); $timestamp = time(); $date = new \DateTime($timestamp); var_dump($date->format('M/d/Y'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7IR5Y
function name:  (null)
number of ops:  18
compiled vars:  !0 = $timestamp, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'nl_NL'
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    7     7        NEW                                              $5      'DateTime'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $5
    8    11        INIT_FCALL                                               'var_dump'
         12        INIT_METHOD_CALL                                         !1, 'format'
         13        SEND_VAL_EX                                              'M%2Fd%2FY'
         14        DO_FCALL                                      0  $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.97 ms | 1394 KiB | 19 Q