3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days = array( 'maandag' => strtotime( "last monday" ), 'dinsdag' => strtotime( "last tuesday" ), 'woensdag'=>strtotime( "last wednesday" ), 'thursday' => strtotime( "last thursday" ), 'friday'=> strtotime( "last friday" ), 'saturday'=> strtotime( "last saturday" ), 'sunday'=> strtotime( "last sunday" ), ); foreach($days as $name => $time){ echo $name . ' ' .date('j-n-Y',$time) . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 30, Position 2 = 41
Branch analysis from position: 30
2 jumps found. (Code = 78) Position 1 = 31, Position 2 = 41
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
filename:       /in/M6BNa
function name:  (null)
number of ops:  43
compiled vars:  !0 = $days, !1 = $time, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'last+monday'
          2        DO_ICALL                                         $3      
          3        INIT_ARRAY                                       ~4      $3, 'maandag'
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'last+tuesday'
          6        DO_ICALL                                         $5      
          7        ADD_ARRAY_ELEMENT                                ~4      $5, 'dinsdag'
    5     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 'last+wednesday'
         10        DO_ICALL                                         $6      
         11        ADD_ARRAY_ELEMENT                                ~4      $6, 'woensdag'
    6    12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 'last+thursday'
         14        DO_ICALL                                         $7      
         15        ADD_ARRAY_ELEMENT                                ~4      $7, 'thursday'
    7    16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 'last+friday'
         18        DO_ICALL                                         $8      
         19        ADD_ARRAY_ELEMENT                                ~4      $8, 'friday'
    8    20        INIT_FCALL                                               'strtotime'
         21        SEND_VAL                                                 'last+saturday'
         22        DO_ICALL                                         $9      
         23        ADD_ARRAY_ELEMENT                                ~4      $9, 'saturday'
    9    24        INIT_FCALL                                               'strtotime'
         25        SEND_VAL                                                 'last+sunday'
         26        DO_ICALL                                         $10     
         27        ADD_ARRAY_ELEMENT                                ~4      $10, 'sunday'
    2    28        ASSIGN                                                   !0, ~4
   12    29      > FE_RESET_R                                       $12     !0, ->41
         30    > > FE_FETCH_R                                       ~13     $12, !1, ->41
         31    >   ASSIGN                                                   !2, ~13
   13    32        CONCAT                                           ~15     !2, '+'
         33        INIT_FCALL                                               'date'
         34        SEND_VAL                                                 'j-n-Y'
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                         $16     
         37        CONCAT                                           ~17     ~15, $16
         38        CONCAT                                           ~18     ~17, '%0A'
         39        ECHO                                                     ~18
   12    40      > JMP                                                      ->30
         41    >   FE_FREE                                                  $12
   14    42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.03 ms | 1400 KiB | 17 Q