3v4l.org

run code in 300+ PHP versions simultaneously
<?php function date_ouverture($form, &$form_state) { $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/PTF8V
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/PTF8V
function name:  date_ouverture
number of ops:  14
compiled vars:  !0 = $form, !1 = $form_state, !2 = $now, !3 = $date, !4 = $tab_jour
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 'now'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !2, $5
    7     6        INIT_FCALL                                               'date_format'
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 'D%2FG'
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !3, $7
    9    11        ASSIGN                                                   !4, <array>
   23    12        ECHO                                                     !3
   24    13      > RETURN                                                   null

End of function date_ouverture

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.24 ms | 1395 KiB | 17 Q