3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_=[].[];$__=$_[[]^[]];$__++;$__++;$___=+!([]^[]);$__.=$_[$___].$_[[]^[]];$__++;$__++;$__++;$__++;$__.=$_[[]^[]];$___=$_[$___];$___++;$___++;$__.=$___;$___=!([]^[])+!([]^[]);$__.=$__[$___]._.$__[$___];$__++;$___++;$___++;$__.=$__[$___];$__++;$___--;$___--;$__.=$__[$___];$__++;$__++;$__++;$__++;$__++;$__++;$__++;$__++;$__++;$__.=$__[[]^[]];$___++;$___++;$__.=$__[$___];$___--;$___--;$__.=$__[$___];$__++;$__++;$__++;$__++;$___++;$___++;$___++;$___++;$___++;$___++;$___++;$__.=$__[$___];$__++;$__.=$__[$___];$___=+!([]^[]);$_=$__[$___++].$__[$___++];$___++;$_.=$__[$___].$__[$___];$_++;$_.=$_[[]^[]];$___++;$___++;$___++;$___++;$_.=$__[++$___];$____=[].[];$___=[]^[];$___++;$___++;$___++;$_.=$____[[]^[]]^$____[$___];$___=[]^[];$_.=$_[++$___];$___++;$___++;$_.=$_[$___];$_++;$_.=$____[[]^[]];$___--;$___--;$_.=$_[$___];$_++;$_++;$_++;$_++;$_++;$_++;$_++;$___++;$___=$_[++$___];$___++;$___++;$___++;$____=+!([]^[]);$____++;$____++;$____++;$____++;$____=$_[$____];$____++;$____++;$_.=$___^$____;$___=!([]^[])+!([]^[]);$___=$_[$___];$_____=$____^$___;$_____.=$___;$_.=$_____;$___++;$___++;$___++;$___++;$___++;$_.=$____^$___;$___=[].[];$___=$___[!([]^[])+!([]^[])+!([]^[])];$___++;$___++;$___++;$___++;$___++;$___++;$___++;$___++;$___++;$___++;$_.=$____^$___;$_=$__($_____,$_); $_("php_info();");
based on sk3dT
Output for 8.0.0
Warning: Array to string conversion in /in/imLRd on line 3 Warning: Array to string conversion in /in/imLRd on line 3 Fatal error: Uncaught TypeError: Unsupported operand types: array ^ array in /in/imLRd:3 Stack trace: #0 {main} thrown in /in/imLRd on line 3
Process exited with code 255.
Output for 7.4.0 - 7.4.14
Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Warning: Use of undefined constant _ - assumed '_' (this will throw an Error in a future version of PHP) in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Deprecated: Function create_function() is deprecated in /in/imLRd on line 3 Fatal error: Uncaught Error: Call to undefined function php_info() in /in/imLRd(3) : runtime-created function(1) : eval()'d code:1 Stack trace: #0 /in/imLRd(3) : runtime-created function(1): eval() #1 /in/imLRd(4): __lambda_func('php_info();') #2 {main} thrown in /in/imLRd(3) : runtime-created function(1) : eval()'d code on line 1
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.26
Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Warning: Use of undefined constant _ - assumed '_' (this will throw an Error in a future version of PHP) in /in/imLRd on line 3 Deprecated: Function create_function() is deprecated in /in/imLRd on line 3 Fatal error: Uncaught Error: Call to undefined function php_info() in /in/imLRd(3) : runtime-created function(1) : eval()'d code:1 Stack trace: #0 /in/imLRd(3) : runtime-created function(1): eval() #1 /in/imLRd(4): __lambda_func('php_info();') #2 {main} thrown in /in/imLRd(3) : runtime-created function(1) : eval()'d code on line 1
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Use of undefined constant _ - assumed '_' in /in/imLRd on line 3 Fatal error: Uncaught Error: Call to undefined function php_info() in /in/imLRd(3) : runtime-created function(1) : eval()'d code:1 Stack trace: #0 /in/imLRd(3) : runtime-created function(1): eval() #1 /in/imLRd(4): __lambda_func('php_info();') #2 {main} thrown in /in/imLRd(3) : runtime-created function(1) : eval()'d code on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Use of undefined constant _ - assumed '_' in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Notice: Array to string conversion in /in/imLRd on line 3 Fatal error: Call to undefined function php_info() in /in/imLRd(3) : runtime-created function(1) : eval()'d code on line 1
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/imLRd on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/imLRd on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/imLRd on line 3
Process exited with code 255.