3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentTime = time(); $lastWednesday = strtotime("last wednesday"); $oneWeek = 7*24*60*60; echo $currentTime; echo $lastWednesday; echo $oneWeek; if ($currentTime > $lastWednesday + $oneWeek) { $overdue = true; } else { $overdue = false; } echo overdue;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/56rDH
function name:  (null)
number of ops:  20
compiled vars:  !0 = $currentTime, !1 = $lastWednesday, !2 = $oneWeek, !3 = $overdue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    3     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 'last+wednesday'
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    4     7        ASSIGN                                                   !2, 604800
    6     8        ECHO                                                     !0
    7     9        ECHO                                                     !1
    8    10        ECHO                                                     !2
    9    11        ADD                                              ~9      !1, !2
         12        IS_SMALLER                                               ~9, !0
         13      > JMPZ                                                     ~10, ->16
   10    14    >   ASSIGN                                                   !3, <true>
         15      > JMP                                                      ->17
   12    16    >   ASSIGN                                                   !3, <false>
   14    17    >   FETCH_CONSTANT                                   ~13     'overdue'
         18        ECHO                                                     ~13
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.59 ms | 1395 KiB | 17 Q