3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.65 ms | 1394 KiB | 17 Q