3v4l.org

run code in 500+ PHP versions simultaneously
<?php $cb = PhpTokn::tokenize(...); // typo in class name (fn(callable $cb) => 0)($cb);
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.28, 8.5.0 - 8.5.13, 8.6.0
Fatal error: Uncaught Error: Class "PhpTokn" not found in /in/lWGUV:3 Stack trace: #0 {main} thrown in /in/lWGUV on line 3
Process exited with code 255.
Output for 8.0.1 - 8.0.15
Parse error: syntax error, unexpected token ")" in /in/lWGUV on line 3
Process exited with code 255.
Output for 7.4.0 - 7.4.27
Parse error: syntax error, unexpected ')' in /in/lWGUV on line 3
Process exited with code 255.

preferences:
37.46 ms | 1170 KiB | 6 Q