3v4l.org

run code in 300+ 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:  29
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        INIT_FCALL                                               'str_replace'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !1
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                         $14     
         20        ASSIGN                                                   !4, $14
   12    21        INIT_FCALL                                               'str_replace'
         22        SEND_VAR                                                 !2
         23        SEND_VAR                                                 !3
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                         $16     
         26        ASSIGN                                                   !4, $16
   14    27        ECHO                                                     !4
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.47 ms | 1002 KiB | 16 Q