3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=2; const BIT_1 = 0; // compile time: heeds lexical grammar rules define('BIT_'.$i,1); // runtime: more flexibility in naming echo BIT_1,"\n"; echo BIT_2,"\n";

preferences:
38.02 ms | 402 KiB | 5 Q