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('l, F m, Y')); var_dump(strftime('%A, %B %d, %Y', $timestamp));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GY0RF
function name:  (null)
number of ops:  26
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        CONCAT                                           ~6      '%40', !0
          9        SEND_VAL_EX                                              ~6
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $5
    8    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !1, 'format'
         14        SEND_VAL_EX                                              'l%2C+F+m%2C+Y'
         15        DO_FCALL                                      0  $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
   10    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'strftime'
         20        SEND_VAL                                                 '%25A%2C+%25B+%25d%2C+%25Y'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $11     
         23        SEND_VAR                                                 $11
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.27 ms | 1386 KiB | 21 Q