3v4l.org

run code in 500+ PHP versions simultaneously
<?php const PERMANENT = -1; function has_permanent(array $max_ages) { return in_array(PERMANENT, $max_ages); } $max_ages_1 = [0, 0]; $max_ages_2 = [0, 60]; $max_ages_3 = [0, PERMANENT]; $max_ages_4 = [60, PERMANENT]; $max_ages_5 = [PERMANENT, PERMANENT]; for ($i = 0; $i < 10000; $i++) { has_permanent($max_ages_1)); has_permanent($max_ages_2)); has_permanent($max_ages_3)); has_permanent($max_ages_4)); has_permanent($max_ages_5)); }
Output for git.master_jit, git.master
Parse error: Unclosed '{' on line 14 does not match ')' in /in/sfiMN on line 15
Process exited with code 255.

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:
29.2 ms | 990 KiB | 3 Q