3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = '2015'; $date = '01/18/' . $year; //$out = date('w', strtotime($date)) == 0 ? $date : $date + 7 - date('w', strtotime($date)); $out = $date + 7; echo $out; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gM75p
function name:  (null)
number of ops:  7
compiled vars:  !0 = $year, !1 = $date, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2015'
    4     1        CONCAT                                           ~4      '01%2F18%2F', !0
          2        ASSIGN                                                   !1, ~4
    7     3        ADD                                              ~6      !1, 7
          4        ASSIGN                                                   !2, ~6
    9     5        ECHO                                                     !2
   10     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.29 ms | 1392 KiB | 13 Q