3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<p>[PHP VERSION: '.phpversion().']</p>'; $state = 'foo'; toggle($state); echo $state; // in php 7.0.5 : still foo! function toggle(&$state) { switch ($state) { case 'foo': $state = 'bar'; break; case 'bar': $state = 'foo'; break; } }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
173.91 ms | 2665 KiB | 11 Q