3v4l.org

run code in 300+ PHP versions simultaneously
<?php function date_ouverture() { $now = strtotime('now'); $date = date_format($now, "D/G"); $tab_jour = array( "lundi-deb" => "7h30", "lundi-fin" => "18h30", "mardi-deb" => "7h30", "mardi-fin" => "18h30", "mercredi-deb" => "7h30", "mercredi-fin" => "18h30", "jeudi-deb" => "7h30", "jeudi-fin" => "18h30", "vendredi-deb" => "7h30", "vendredi-fin" => "14h00", ); echo($date); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bj0ba
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E > > RETURN                                                   1

Function date_ouverture:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bj0ba
function name:  date_ouverture
number of ops:  12
compiled vars:  !0 = $now, !1 = $date, !2 = $tab_jour
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'now'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    7     4        INIT_FCALL                                               'date_format'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'D%2FG'
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    9     9        ASSIGN                                                   !2, <array>
   23    10        ECHO                                                     !1
   24    11      > RETURN                                                   null

End of function date_ouverture

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.7 ms | 1394 KiB | 17 Q