3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_TIME, 'fr_FR'); $dateString = '2020-08-08'; $timestamp = strtotime($dateString); $formattedDate = strftime('%d %B %Y', $timestamp); //setlocale(LC_ALL, Locale::getDefault()); // restore (if neccessary) echo utf8_encode($formattedDate);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F62Sj
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dateString, !1 = $timestamp, !2 = $formattedDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 'fr_FR'
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, '2020-08-08'
    6     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    7     9        INIT_FCALL                                               'strftime'
         10        SEND_VAL                                                 '%25d+%25B+%25Y'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
   10    14        INIT_FCALL                                               'utf8_encode'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $9      
         17        ECHO                                                     $9
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.6 ms | 1394 KiB | 21 Q