3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_progress_bar($length, $progress, $total, $block = '=', $space = ' ') { $perBlock = $total / $length; $blocks = floor($progress / $perBlock); return str_repeat($block, $blocks) . str_repeat($space, $length - $blocks); } $length = 20; $total = 100; echo get_progress_bar($length, 1, $total) . "\n"; echo get_progress_bar($length, 5, $total) . "\n"; echo get_progress_bar($length, 31, $total) . "\n"; echo get_progress_bar($length, 69, $total) . "\n"; echo get_progress_bar($length, 80, $total) . "\n"; echo get_progress_bar($length, 100, $total) . "\n";
Output for git.master, git.master_jit, rfc.property-hooks
= ====== ============= ================ ====================

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:
42.82 ms | 401 KiB | 8 Q