3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = 'Hello world.'; $test = 'world'; $pos = strpos($search, $test); echo $pos; if (!$pos) echo "1. Not found"; else echo "1. Found"; echo "\r\n"; if ($pos != true) echo "2. Not found"; else echo "2. Found"; echo "\r\n"; if ($pos === false) echo "3. Not found"; else echo "3. Found"; echo "\r\n"; if ($pos == false) echo "4. Not found"; else echo "4. Found"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
61. Found 2. Found 3. Found 4. Found

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