3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; $a = [1, 2, 3]; \in_array($b, $a, true); // not optimized because variable array \in_array($b, [1, 2, 3]); // not optimized because missing strict param in_array($b, [1, 2, 3], true); // not optimized because no leading `\` or import \in_array($b, [1, 2, 3], true); // optimized
Output for git.master, git.master_jit
Warning: Undefined variable $b in /in/FjKJ0 on line 6 Warning: Undefined variable $b in /in/FjKJ0 on line 8 Warning: Undefined variable $b in /in/FjKJ0 on line 10 Warning: Undefined variable $b in /in/FjKJ0 on line 12

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:
38.7 ms | 405 KiB | 5 Q