3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/([-+]*\d\.\d*)([-+])(\d+)/', '$1E$2$3', '5.66+99');

preferences:
47.86 ms | 402 KiB | 5 Q