3v4l.org

run code in 300+ PHP versions simultaneously
<?php $week_number = date("w"); $month_number = date("m"); print $week_number . "\n"; print $month_number;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XaEKp
function name:  (null)
number of ops:  12
compiled vars:  !0 = $week_number, !1 = $month_number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'w'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'm'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    5     8        CONCAT                                           ~6      !0, '%0A'
          9        ECHO                                                     ~6
    6    10        ECHO                                                     !1
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.16 ms | 1385 KiB | 15 Q