3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $rep_power = $user['reputation']; $posneg = ''; if ($user['reputation'] == 0) { $rep_img = 'balance'; $rep_power = $user['reputation'] * -1; } elseif ($user['reputation'] < 0) { $rep_img = 'neg'; $rep_img_2 = 'highneg'; $rep_power = $user['reputation'] * -1; } else { $rep_img = 'pos'; $rep_img_2 = 'highpos'; }
based on Y2v3M
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.3.0beta1
Notice: Undefined variable: user in /in/8GR8B on line 2 Notice: Undefined variable: user in /in/8GR8B on line 4 Notice: Undefined variable: user in /in/8GR8B on line 6
Output for hhvm-3.22.0
Notice: Undefined variable: user in /in/8GR8B on line -1 Notice: Undefined variable: user in /in/8GR8B on line -1 Notice: Undefined variable: user in /in/8GR8B on line -1