3v4l.org

run code in 300+ PHP versions simultaneously
<?=($a=xx.bcpow(9,99,99))^($b=[].new Exception([]))," ", strlen( $a)," ", strlen($b) ;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Undefined constant "xx" in /in/IDXY4:1 Stack trace: #0 {main} thrown in /in/IDXY4 on line 1
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.33
Warning: Use of undefined constant xx - assumed 'xx' (this will throw an Error in a future version of PHP) in /in/IDXY4 on line 1 Fatal error: Uncaught Error: Call to undefined function bcpow() in /in/IDXY4:1 Stack trace: #0 {main} thrown in /in/IDXY4 on line 1
Process exited with code 255.
Output for 7.4.0 - 7.4.32
Warning: Use of undefined constant xx - assumed 'xx' (this will throw an Error in a future version of PHP) in /in/IDXY4 on line 1 Fatal error: Uncaught Error: Wrong parameters for Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in /in/IDXY4:1 Stack trace: #0 /in/IDXY4(1): Exception->__construct(Array) #1 {main} thrown in /in/IDXY4 on line 1
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Notice: Array to string conversion in /in/IDXY4 on line 1 Warning: Use of undefined constant xx - assumed 'xx' (this will throw an Error in a future version of PHP) in /in/IDXY4 on line 1 Fatal error: Uncaught Error: Wrong parameters for Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in /in/IDXY4:1 Stack trace: #0 /in/IDXY4(1): Exception->__construct(Array) #1 {main} thrown in /in/IDXY4 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/IDXY4 on line 1 Notice: Use of undefined constant xx - assumed 'xx' in /in/IDXY4 on line 1 Fatal error: Uncaught Error: Wrong parameters for Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in /in/IDXY4:1 Stack trace: #0 /in/IDXY4(1): Exception->__construct(Array) #1 {main} thrown in /in/IDXY4 on line 1
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Notice: Use of undefined constant xx - assumed 'xx' in /in/IDXY4 on line 1 Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /in/IDXY4 on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Notice: Use of undefined constant xx - assumed 'xx' in /in/IDXY4 on line 1 Fatal error: Call to undefined function bcpow() in /in/IDXY4 on line 1
Process exited with code 255.

preferences:
263.59 ms | 401 KiB | 372 Q