3v4l.org

run code in 300+ PHP versions simultaneously
$like_post_num = 13; $hate_post_num = 10; $total = $like_post_num + $hate_post_num; $like_post_percent = round($like_post_num / $total * 100); $hate_post_percent = round($hate_post_num / $total * 100); <div class="dislike_base"> <div class="like" style="width: <?php echo $like_post_percent ?>%"></div> <div class="like" style="width: <?php echo $hate_post_percent ?>%"></div> </div>
Output for git.master, git.master_jit, rfc.property-hooks
$like_post_num = 13; $hate_post_num = 10; $total = $like_post_num + $hate_post_num; $like_post_percent = round($like_post_num / $total * 100); $hate_post_percent = round($hate_post_num / $total * 100); <div class="dislike_base"> <div class="like" style="width: Warning: Undefined variable $like_post_percent in /in/IIX6W on line 9 %"></div> <div class="like" style="width: Warning: Undefined variable $hate_post_percent in /in/IIX6W on line 10 %"></div> </div>

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:
50.54 ms | 402 KiB | 8 Q