3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ [1, 1], [0, 1], [0, 2], ]; foreach ($options as $val) { $b = $val[0] ?: $val[1]; $b = $val[0] || $val[1]; $c = $val[0] OR $val[1]; echo "Trying {$val[0]}:{$val[1]} -> \n"; var_dump($a, $b, $c); echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Trying 1:1 -> Warning: Undefined variable $a in /in/QRhBt on line 13 NULL bool(true) int(1) Trying 0:1 -> Warning: Undefined variable $a in /in/QRhBt on line 13 NULL bool(true) int(0) Trying 0:2 -> Warning: Undefined variable $a in /in/QRhBt on line 13 NULL bool(true) int(0)

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