3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.23, 8.4.1 - 8.4.10
---init---- bool(true) string(8) "fugafuga" ---------- bool(false) string(3) "foo" string(3) "bar" ---------- bool(true) string(3) "foo" string(8) "hogehoge" string(8) "piyopiyo"
Output for 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Class 'WeakMap' not found in /in/kBnZJ:18 Stack trace: #0 /in/kBnZJ(51): CanCastBool::makeInstance('fugafuga') #1 {main} thrown in /in/kBnZJ on line 18
Process exited with code 255.
Output for 7.3.0 - 7.3.33
Parse error: syntax error, unexpected 'WeakMap' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /in/kBnZJ on line 6
Process exited with code 255.

preferences:
102.63 ms | 413 KiB | 5 Q