3v4l.org

run code in 300+ PHP versions simultaneously
<?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'; }
Output for git.master, git.master_jit
Warning: Undefined variable $user in /in/8GR8B on line 2 Warning: Trying to access array offset on value of type null in /in/8GR8B on line 2 Warning: Undefined variable $user in /in/8GR8B on line 4 Warning: Trying to access array offset on value of type null in /in/8GR8B on line 4 Warning: Undefined variable $user in /in/8GR8B on line 6 Warning: Trying to access array offset on value of type null in /in/8GR8B on line 6
Output for rfc.property-hooks
Warning: Undefined variable $user in /in/8GR8B on line 2 Warning: Trying to access array offset on null in /in/8GR8B on line 2 Warning: Undefined variable $user in /in/8GR8B on line 4 Warning: Trying to access array offset on null in /in/8GR8B on line 4 Warning: Undefined variable $user in /in/8GR8B on line 6 Warning: Trying to access array offset on null in /in/8GR8B on line 6

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
61.2 ms | 401 KiB | 8 Q