3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = date('l'); if($test = "Sunday"){ $start = ''; } echo strtotime('Sunday last week');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/sAKal
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test, !1 = $start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'l'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        ASSIGN                                           ~4      !0, 'Sunday'
          5      > JMPZ                                                     ~4, ->7
    6     6    >   ASSIGN                                                   !1, ''
    8     7    >   INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 'Sunday+last+week'
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.47 ms | 1394 KiB | 17 Q