3v4l.org

run code in 300+ PHP versions simultaneously
<?php $GLOBALS=$GLOBALS{next}=next($GLOBALS{'GLOBALS'})[$GLOBALS['next']['next']=next($GLOBALS)['GLOBALS']][$next['GLOBALS']=next($GLOBALS[GLOBALS]['GLOBALS'])[$next['next']]][$next['GLOBALS']=next($next['GLOBALS'])][$GLOBALS[next]['next']($GLOBALS['next']{'GLOBALS'})]=next(next(${'next'}['next'])); ?>
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in /in/LB769 on line 2
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /in/LB769 on line 2
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/LB769 on line 2 Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/LB769 on line 2 Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/LB769 on line 2 Warning: Use of undefined constant next - assumed 'next' (this will throw an Error in a future version of PHP) in /in/LB769 on line 2 Notice: Undefined index: GLOBALS in /in/LB769 on line 2 Warning: Use of undefined constant GLOBALS - assumed 'GLOBALS' (this will throw an Error in a future version of PHP) in /in/LB769 on line 2 Notice: Undefined index: in /in/LB769 on line 2 Warning: next() expects parameter 1 to be array, null given in /in/LB769 on line 2 Warning: Use of undefined constant next - assumed 'next' (this will throw an Error in a future version of PHP) in /in/LB769 on line 2 Fatal error: Uncaught Error: Function name must be a string in /in/LB769:2 Stack trace: #0 {main} thrown in /in/LB769 on line 2
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant next - assumed 'next' (this will throw an Error in a future version of PHP) in /in/LB769 on line 2 Warning: Use of undefined constant GLOBALS - assumed 'GLOBALS' (this will throw an Error in a future version of PHP) in /in/LB769 on line 2 Warning: next() expects parameter 1 to be array, null given in /in/LB769 on line 2 Warning: Use of undefined constant next - assumed 'next' (this will throw an Error in a future version of PHP) in /in/LB769 on line 2 Fatal error: Uncaught Error: Function name must be a string in /in/LB769:2 Stack trace: #0 {main} thrown in /in/LB769 on line 2
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Warning: Use of undefined constant next - assumed 'next' (this will throw an Error in a future version of PHP) in /in/LB769 on line 2 Notice: Undefined index: GLOBALS in /in/LB769 on line 2 Warning: Use of undefined constant GLOBALS - assumed 'GLOBALS' (this will throw an Error in a future version of PHP) in /in/LB769 on line 2 Notice: Undefined index: in /in/LB769 on line 2 Warning: next() expects parameter 1 to be array, null given in /in/LB769 on line 2 Warning: Use of undefined constant next - assumed 'next' (this will throw an Error in a future version of PHP) in /in/LB769 on line 2 Fatal error: Uncaught Error: Function name must be a string in /in/LB769:2 Stack trace: #0 {main} thrown in /in/LB769 on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.25
Notice: Use of undefined constant next - assumed 'next' in /in/LB769 on line 2 Notice: Undefined index: GLOBALS in /in/LB769 on line 2 Notice: Use of undefined constant GLOBALS - assumed 'GLOBALS' in /in/LB769 on line 2 Notice: Undefined index: in /in/LB769 on line 2 Warning: next() expects parameter 1 to be array, null given in /in/LB769 on line 2 Notice: Use of undefined constant next - assumed 'next' in /in/LB769 on line 2 Fatal error: Uncaught Error: Function name must be a string in /in/LB769:2 Stack trace: #0 {main} thrown in /in/LB769 on line 2
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
Notice: Use of undefined constant next - assumed 'next' in /in/LB769 on line 2 Notice: Undefined index: GLOBALS in /in/LB769 on line 2 Notice: Use of undefined constant GLOBALS - assumed 'GLOBALS' in /in/LB769 on line 2 Notice: Undefined index: in /in/LB769 on line 2 Warning: next() expects parameter 1 to be array, null given in /in/LB769 on line 2 Notice: Use of undefined constant next - assumed 'next' in /in/LB769 on line 2 Fatal error: Function name must be a string in /in/LB769 on line 2
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/LB769 on line 2
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/LB769 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/LB769 on line 2
Process exited with code 255.

preferences:
267.67 ms | 401 KiB | 418 Q