3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1=>1, 2=>2, 10=>10, 20=>20, 30 => 30 , 40=>40); var_dump(isset($arr[100])); var_dump(in_array($arr[100]));
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) Warning: Undefined array key 100 in /in/tlrKC on line 4 Fatal error: Uncaught ArgumentCountError: in_array() expects at least 2 arguments, 1 given in /in/tlrKC:4 Stack trace: #0 /in/tlrKC(4): in_array(NULL) #1 {main} thrown in /in/tlrKC on line 4
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:
41.36 ms | 401 KiB | 8 Q