3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dag = array("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"); $dag2 = array("Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag", "Zondag"); $maand = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); $maand2 = array("Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"); $date = strtotime('next Tuesday'); $date = date("l d F Y", $date); echo $date . "\r\n"; $date = str_replace($dag, $dag2, $date); $date = str_replace($maand, $maand2, $date); echo $date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aZohq
function name:  (null)
number of ops:  23
compiled vars:  !0 = $dag, !1 = $dag2, !2 = $maand, !3 = $maand2, !4 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        ASSIGN                                                       !1, <array>
    5     2        ASSIGN                                                       !2, <array>
    6     3        ASSIGN                                                       !3, <array>
    8     4        INIT_FCALL                                                   'strtotime'
          5        SEND_VAL                                                     'next+Tuesday'
          6        DO_ICALL                                             $9      
          7        ASSIGN                                                       !4, $9
    9     8        INIT_FCALL                                                   'date'
          9        SEND_VAL                                                     'l+d+F+Y'
         10        SEND_VAR                                                     !4
         11        DO_ICALL                                             $11     
         12        ASSIGN                                                       !4, $11
   10    13        CONCAT                                               ~13     !4, '%0D%0A'
         14        ECHO                                                         ~13
   11    15        FRAMELESS_ICALL_3                str_replace         ~14     !0, !1
         16        OP_DATA                                                      !4
         17        ASSIGN                                                       !4, ~14
   12    18        FRAMELESS_ICALL_3                str_replace         ~16     !2, !3
         19        OP_DATA                                                      !4
         20        ASSIGN                                                       !4, ~16
   14    21        ECHO                                                         !4
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.52 ms | 2397 KiB | 17 Q