3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Token { const EOF = -1; const TEXT = 0; const BLOCK_START = 1; const OUTPUT_START = 2; const BLOCK_END = 3; const OUTPUT_END = 4; const NAME = 5; const NUMBER = 6; const STRING = 7; const OPERATOR = 8; const CONSTANT = 9; } $token = new Token; print Token::EOF . " " . PHP_EOL; print Token::TEXT . " " . PHP_EOL; print Token::BLOCK_START . " " . PHP_EOL; print Token::OUTPUT_START . " " . PHP_EOL; print Token::BLOCK_END . " " . PHP_EOL; print Token::OUTPUT_END . " " . PHP_EOL; print Token::NAME . " " . PHP_EOL; print Token::NUMBER . " " . PHP_EOL; print Token::STRING . " " . PHP_EOL; print Token::OPERATOR . " " . PHP_EOL; print Token::CONSTANT . " " . PHP_EOL; print "everything is ok!";
Output for git.master, git.master_jit, rfc.property-hooks
-1 0 1 2 3 4 5 6 7 8 9 everything is ok!

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.72 ms | 401 KiB | 8 Q