3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_=[].[];$__=$_[[]^[]];$__++;$__++;$___=+!([]^[]);$__.=$_[$___].$_[[]^[]];$__++;$__++;$__++;$__++;$__.=$_[[]^[]];$___=$_[$___];$___++;$___++;$__.=$___;$___=!([]^[])+!([]^[]);$__.=$__[$___]._.$__[$___];$__++;$___++;$___++;$__.=$__[$___];$__++;$___--;$___--;$__.=$__[$___];$__++;$__++;$__++;$__++;$__++;$__++;$__++;$__++;$__++;$__.=$__[[]^[]];$___++;$___++;$__.=$__[$___];$___--;$___--;$__.=$__[$___];$__++;$__++;$__++;$__++;$___++;$___++;$___++;$___++;$___++;$___++;$___++;$__.=$__[$___];$__++;$__.=$__[$___];$___=+!([]^[]);$_=$__[$___++].$__[$___++];$___++;$_.=$__[$___].$__[$___];$_++;$_.=$_[[]^[]];$___++;$___++;$___++;$___++;$_.=$__[++$___];$____=[].[];$___=[]^[];$___++;$___++;$___++;$_.=$____[[]^[]]^$____[$___];$___=[]^[];$_.=$_[++$___];$___++;$___++;$_.=$_[$___];$_++;$_.=$____[[]^[]];$___--;$___--;$_.=$_[$___];$_++;$_++;$_++;$_++;$_++;$_++;$_++;$___++;$___=$_[++$___];$___++;$___++;$___++;$____=+!([]^[]);$____++;$____++;$____++;$____++;$____=$_[$____];$____++;$____++;$_.=$___^$____;$___=!([]^[])+!([]^[]);$___=$_[$___];$_____=$____^$___;$_____.=$___;$_.=$_____;$___++;$___++;$___++;$___++;$___++;$_.=$____^$___;$___=[].[];$___=$___[!([]^[])+!([]^[])+!([]^[])];$___++;$___++;$___++;$___++;$___++;$___++;$___++;$___++;$___++;$___++;$_.=$____^$___;$_=$__($_____,$_); $_("echo $((5+5)) . PHP_EOL;");
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Warning: Array to string conversion in /in/sk3dT on line 3 Warning: Array to string conversion in /in/sk3dT on line 3 Fatal error: Uncaught TypeError: Unsupported operand types: array ^ array in /in/sk3dT:3 Stack trace: #0 {main} thrown in /in/sk3dT on line 3
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Warning: Use of undefined constant _ - assumed '_' (this will throw an Error in a future version of PHP) in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Deprecated: Function create_function() is deprecated in /in/sk3dT on line 3 Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '{' or '$' in /in/sk3dT(3) : runtime-created function(1) : eval()'d code on line 1
Process exited with code 255.
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33
Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Warning: Use of undefined constant _ - assumed '_' (this will throw an Error in a future version of PHP) in /in/sk3dT on line 3 Deprecated: Function create_function() is deprecated in /in/sk3dT on line 3 Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '{' or '$' in /in/sk3dT(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/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Use of undefined constant _ - assumed '_' in /in/sk3dT on line 3 Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '{' or '$' in /in/sk3dT(3) : runtime-created function(1) : eval()'d code on line 1
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Use of undefined constant _ - assumed '_' in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Notice: Array to string conversion in /in/sk3dT on line 3 Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '$' in /in/sk3dT(3) : runtime-created function(1) : eval()'d code on line 1

preferences:
230.95 ms | 403 KiB | 341 Q