3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.2.0 - 8.2.28, 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in /in/2nUnl on line 22 Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in /in/2nUnl on line 23 Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in /in/2nUnl on line 38 Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in /in/2nUnl on line 40 $a: 17 bool(false) bool(true) $0: 31 $0: 31 $0: 31 $0: 31 bool(false) bool(true) $GLOBALS: 47 $GLOBALS: 47 $GLOBALS: 47 Warning: Array to string conversion in /in/2nUnl on line 40 $GLOBALS: Array
Output for 8.1.0 - 8.1.32
$a: 17 bool(false) bool(true) $0: 31 $0: 31 $0: 31 $0: 31 bool(false) bool(true) $GLOBALS: 47 $GLOBALS: 47 $GLOBALS: 47 Warning: Array to string conversion in /in/2nUnl on line 40 $GLOBALS: Array
Output for 8.0.0 - 8.0.30
$a: 17 bool(false) bool(false) Warning: Undefined array key 0 in /in/2nUnl on line 20 $0: $0: 31 $0: 31 $0: 31 bool(true) bool(false) Warning: Trying to access array offset on value of type int in /in/2nUnl on line 33 $GLOBALS: $GLOBALS: 47 $GLOBALS: 47 $GLOBALS: 47
Output for 7.4.0 - 7.4.33
$a: 17 bool(false) bool(false) Notice: Undefined offset: 0 in /in/2nUnl on line 20 $0: $0: 31 $0: 31 $0: 31 bool(true) bool(false) Notice: Trying to access array offset on value of type int in /in/2nUnl on line 33 $GLOBALS: $GLOBALS: 47 $GLOBALS: 47 $GLOBALS: 47
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33
$a: 17 bool(false) bool(false) Notice: Undefined offset: 0 in /in/2nUnl on line 20 $0: $0: 31 $0: 31 $0: 31 bool(true) bool(false) $GLOBALS: $GLOBALS: 47 $GLOBALS: 47 $GLOBALS: 47
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.1.6, 5.2.0 - 5.2.17
$a: 17 bool(false) bool(false) Notice: Undefined offset: 0 in /in/2nUnl on line 20 $0: $0: 31 $0: 31 $0: 31 bool(true) bool(false) $GLOBALS: $GLOBALS: 47 $GLOBALS: 47 $GLOBALS: 47
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/2nUnl on line 42
Process exited with code 255.
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9
$a: 17 bool(false) bool(true) $0: 31 $0: 31 $0: 31 $0: 31 bool(true) bool(false) $GLOBALS: $GLOBALS: 47 $GLOBALS: 47 $GLOBALS: 47

preferences:
201.23 ms | 421 KiB | 5 Q