3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL,"es_ES"); $string = "24/11/2014"; $date = DateTime::createFromFormat("d/m/Y", $string); $dt = $date->format("l"); echo $dt;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nRlXd
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string, !1 = $date, !2 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'es_ES'
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, '24%2F11%2F2014'
    5     5        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          6        SEND_VAL                                                 'd%2Fm%2FY'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0  $5      
          9        ASSIGN                                                   !1, $5
    6    10        INIT_METHOD_CALL                                         !1, 'format'
         11        SEND_VAL_EX                                              'l'
         12        DO_FCALL                                      0  $7      
         13        ASSIGN                                                   !2, $7
    7    14        ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.65 ms | 1394 KiB | 15 Q