3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = ""; $a = "userinput"; // This was passed as a command line argument to the script so it can be changed. if (!empty($a)) { // nothing here } if (!empty($value)) { print "Goodbye"; } // Can the value of $a on line 4 be altered in order to print Goodbye?
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 5
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 5
filename:       /in/oeat4
function name:  (null)
number of ops:  10
compiled vars:  !0 = $value, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 'userinput'
    6     2        ISSET_ISEMPTY_CV                                 ~4      !1
          3        BOOL_NOT                                         ~5      ~4
          4      > JMPZ                                                     ~5, ->5
   10     5    >   ISSET_ISEMPTY_CV                                 ~6      !0
          6        BOOL_NOT                                         ~7      ~6
          7      > JMPZ                                                     ~7, ->9
   11     8    >   ECHO                                                     'Goodbye'
   14     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.72 ms | 1392 KiB | 13 Q