3v4l.org

run code in 300+ PHP versions simultaneously
<?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"); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $unit_ste in /in/G5Wce on line 10 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/G5Wce on line 10

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
62.73 ms | 401 KiB | 8 Q