3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale (LC_ALL, 'nl_NL'); function formatDateLocale($strTime) { $timestamp = strtotime($strTime); return strftime('%A, %d.%B %Y', $timestamp); } echo formatDateLocale('2014-11-11');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8l4Gi
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'nl_NL'
          3        DO_ICALL                                                 
   10     4        INIT_FCALL                                               'formatdatelocale'
          5        SEND_VAL                                                 '2014-11-11'
          6        DO_FCALL                                      0  $1      
          7        ECHO                                                     $1
          8      > RETURN                                                   1

Function formatdatelocale:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8l4Gi
function name:  formatDateLocale
number of ops:  11
compiled vars:  !0 = $strTime, !1 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !1, $2
    7     5        INIT_FCALL                                               'strftime'
          6        SEND_VAL                                                 '%25A%2C+%25d.%25B+%25Y'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9      > RETURN                                                   $4
    8    10*     > RETURN                                                   null

End of function formatdatelocale

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.56 ms | 1397 KiB | 20 Q