3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vars = array('a1', '1a', 'ačervený'); foreach($vars as $var) { $$var = 'x'; } ${'a1'} = 'y'; ${'1a'} = 'y'; ${'ačervený'} = 'y'; $a = 1; $A = 2; var_dump($a, $A); $shit💩 = 'a'; var_dump($shit💩);
based on umBOX
Output for 4.3.0 - 7.2.0
int(1) int(2) string(1) "a"