3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $rates = array( 'flatrate_flatrate' => 4.5, 'matrixrate_matrixrate_1', 10, 'matrixrate_matrixrate_2', 15, 'matrixrate_matrixrate_3', 15, 'matrixrate_matrixrate_4', 20 ); echo current(array_keys($rates));
Output for 4.3.0 - 5.0.4, 5.1.0 - 7.2.0
flatrate_flatrate
Output for 5.0.5
Fatal error: Only variables can be passed by reference in /in/hKS9r on line 11
Process exited with code 255.