3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'Monday, September 28, 2009'; $time = strtotime($s); $end = strtotime('next sunday', $time); $format = 'Y-m-d'; echo $end; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xs03H
function name:  (null)
number of ops:  13
compiled vars:  !0 = $s, !1 = $time, !2 = $end, !3 = $format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Monday%2C+September+28%2C+2009'
    4     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 'next+sunday'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    6    10        ASSIGN                                                   !3, 'Y-m-d'
    8    11        ECHO                                                     !2
   11    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.11 ms | 1385 KiB | 15 Q