3v4l.org

run code in 300+ PHP versions simultaneously
<?php $overAge = array('LO70','OFP'); $freeGift = array('LFG'); $endowment = array('PSE','EIQ','PED','ELI'); $cashback = array('LWC'); $mortgageCover = array('MIQ'); switch ('EIQ') { case in_array($freeGift): $topMessage = "This is a free gift lead."; break; case in_array($endowment): $topMessage = "This is an endowment lead"; break; case in_array($cashback): $topMessage = "This is a life insurnace with cashback lead"; break; default: $topMessage = "This is a top quality life insurnace lead"; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: in_array() expects at least 2 arguments, 1 given in /in/98cYQ:11 Stack trace: #0 /in/98cYQ(11): in_array(Array) #1 {main} thrown in /in/98cYQ on line 11
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:
46.12 ms | 401 KiB | 8 Q