3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $inputLine = '1.12.34'; $fieldLine = array('in_azs','in_pump','in_fuel'); $inputArr = explode(" ", $inputLine); var_dump($inputArr); count(count($inputArr)); if(count($inputArr)>=1){ $inputArr = array_combine($fieldLine, $inputArr); }
based on VX3pZ
Output for 5.6.22 - 7.1.0
array(1) { [0]=> string(7) "1.12.34" } Warning: array_combine(): Both parameters should have an equal number of elements in /in/utufe on line 10