3v4l.org

run code in 300+ PHP versions simultaneously
<?php $col = new stdClass; $col->name = 'foo_bar'; $text = <<<MySQL This works perfectly fine: $col->name. See? MySQL; echo $text;
Output for 8.1.32 - 8.1.34, 8.2.26 - 8.2.30, 8.3.5 - 8.3.30, 8.4.1 - 8.4.17, 8.5.0 - 8.5.2
This works perfectly fine: foo_bar. See?

preferences:
73.37 ms | 406 KiB | 5 Q