3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = 'Hello world.'; $test = 'world'; $pos = strpos($search, $test); echo $pos + "\r\n"; 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
Fatal error: Uncaught TypeError: Unsupported operand types: int + string in /in/OEONE:8 Stack trace: #0 {main} thrown in /in/OEONE on line 8
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:
48.52 ms | 401 KiB | 8 Q