3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if(!function_exists('decodeUnits')) { function decodeUnits($unit_str) { if(strlen($unit_str) == 1) { $unit_str = '0'.$unit_str; } if(strlen($unit_ste) > 2) { return null; } if($unit_str == '00') { return 'KWh'; } if($unit_str == '07') { return 'Litres'; } if($unit_str == '03') { return 'm3'; } return null; } } decodeUnits("03"); ?>
based on m5r5f
Output for 5.0.4 - 7.3.0rc2
Notice: Undefined variable: unit_ste in /in/G5Wce on line 10
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: unit_ste in /in/G5Wce on line 10