3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 4; echo "${i*20}";
Output for 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in /in/cKaIo on line 4 Fatal error: Uncaught Error: Undefined constant "i" in /in/cKaIo:4 Stack trace: #0 {main} thrown in /in/cKaIo on line 4
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
Fatal error: Uncaught Error: Undefined constant "i" in /in/cKaIo:4 Stack trace: #0 {main} thrown in /in/cKaIo on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/cKaIo on line 4 Warning: A non-numeric value encountered in /in/cKaIo on line 4 Notice: Undefined variable: 0 in /in/cKaIo on line 4
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/cKaIo on line 4 Warning: A non-numeric value encountered in /in/cKaIo on line 4
Output for 7.1.0 - 7.1.33
Notice: Use of undefined constant i - assumed 'i' in /in/cKaIo on line 4 Warning: A non-numeric value encountered in /in/cKaIo on line 4 Notice: Undefined variable: 0 in /in/cKaIo on line 4
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20
Notice: Use of undefined constant i - assumed 'i' in /in/cKaIo on line 4 Notice: Undefined variable: 0 in /in/cKaIo on line 4
Output for 5.4.1 - 5.4.45
Notice: Undefined variable: 0 in /in/cKaIo on line 4

preferences:
203.36 ms | 401 KiB | 272 Q