3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = date('Y'); $week_count = date('W', strtotime($year . '-12-31')); if ($week_count == '01') { $week_count = date('W', strtotime($year . '-12-24')); } echo $week_count;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 24
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/2PoEj
function name:  (null)
number of ops:  26
compiled vars:  !0 = $year, !1 = $week_count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'W'
          6        INIT_FCALL                                               'strtotime'
          7        CONCAT                                           ~4      !0, '-12-31'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    7    13        IS_EQUAL                                                 !1, '01'
         14      > JMPZ                                                     ~8, ->24
    9    15    >   INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'W'
         17        INIT_FCALL                                               'strtotime'
         18        CONCAT                                           ~9      !0, '-12-24'
         19        SEND_VAL                                                 ~9
         20        DO_ICALL                                         $10     
         21        SEND_VAR                                                 $10
         22        DO_ICALL                                         $11     
         23        ASSIGN                                                   !1, $11
   12    24    >   ECHO                                                     !1
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.76 ms | 1400 KiB | 17 Q