3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = null; $arr = get_defined_vars(); echo '<PRE>'; print_r($arr); echo in_array('mystring',$arr['mystring']);
Output for git.master, git.master_jit, rfc.property-hooks
<PRE>Array ( [_GET] => Array ( ) [_POST] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) [argv] => Array ( [0] => /in/5hceE ) [argc] => 1 [_SERVER] => Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIL] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [HOME] => /tmp [PHP_SELF] => /in/5hceE [SCRIPT_NAME] => /in/5hceE [SCRIPT_FILENAME] => /in/5hceE [PATH_TRANSLATED] => /in/5hceE [DOCUMENT_ROOT] => [REQUEST_TIME_FLOAT] => 1402808175.0001 [REQUEST_TIME] => 1402808175 [argv] => Array ( [0] => /in/5hceE ) [argc] => 1 ) [mystring] => ) Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /in/5hceE:6 Stack trace: #0 /in/5hceE(6): in_array('mystring', NULL) #1 {main} thrown in /in/5hceE on line 6
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:
66.9 ms | 402 KiB | 8 Q