3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "125-4.5,103-4.5,103-4.5,5-4.5,103-4.5,59-4.5,22-4.5,81-4.5,113-4.5,5-4.5,121-4.5,113-4.5,16-4.5,103-4.5,5-4.5,113-4.5,68-4.5,103-4.5,5-5,117-4.5,113-4.5,113-4.5,113-4.5,113-4,41-4,5-4,5-4,113-4.5,95-4,113-4.5,4-4,82-4.5,86-4,82-4.5,82-4.5,103-4,103-4.5,87-4,113-4.5,113-4.5,65-4,113-4,82-4,114-4,82-5,125-4,8-4,113-4,113-4,113-4.5,113-4.5,86-4,103-4.5,113-4,96-4,103-4,68-4,16-4,98-4.5,103-5,59-4,95-4,113-4.5,121-5,8-4,125-4,82-4.5,95-4,103-4,113-5,113-4,6-4,87-3.5,113-4.5,125-4,113-4.5,113-4,113-4.5,116-4,124-4,113-4,113-4.5,68-3.5,68-4.5,88-3.5,113-4.5,113-4,82-3.5,103-4,103-4.5,72-4,81-4,113-5,32-4,82-4.5,103-4,68-4,22-5,113-4.5,113-4,57-5,32-3.5,103-5,114-4,87-3.5,69-4,87-5,113-4,121-4.5,113-3.5,113-3.5,113-4.5,95-4,113-5,113-4.5,113-3,113-4.5,113-4,134-3.5,134-4.5,113-4,103-4,59-3.5,82-4.5,103-4,113-4.5,113-4,82-4,113-5,5-5,95-5,113-5,113-5,103-4.5,103-4,61-3.5,113-4,109-4,113-5,113-5,113-5,8-4,103-4,95-4.5,113-4,86-3,22-4,59-4,113-5,87-3.5,113-5,103-3.5,8-3.5,96-3.5,103-4,22-4,87-3.5,87-3.5,132-4,95-3.5,95-4,113-4,95-4,103-3.5,96-5,103-3.5,95-3.5,95-3.5,78-3,95-3.5,55-4.5,78-3,113-4,16-3.5,113-5,113-5,113-4.5,5-4,103-4,113-4,113-4,113-3.5,50-4,103-3.5,103-3.5,113-4,59-4,68-3.5,113-5,6-3.5,113-5,113-5,113-4,117-3.5,113-4,113-4,129-3,61-3.5,113-5,1-3,95-5,103-5,121-3.5,103-3.5,113-4,113-4,5-4,113-5,109-3,113-5,16-4,103-3.5,96-3,57-3.5,117-3,82-3,117-3,113-3,113-3.5,59-3,113-3.5,113-2,57-1,113-4,113-4,1-2,57-1.5,134-1.5,2-1.5,68-1.5,51-1.5,1-1.5,41-1.5,114-1.5,41-1.5,103-1.5,55-1.5,113-1.5,103-1.5,113-1.5,5-1.5,103-1.5,113-1.5,103-1.5,113-0,114-0,113-0,113-0,103-0,113-0,113-0,113-0,113-0,113-0,50-0,59-0,108-0,125-0,113-0,121-0,113-0,95-0,113-0,113-0,113-0,5-0,41-0,113-0,113-0,113-0,103-0,113-0,113-0,113-0,113-5,113-0,57-0,57-0,113-0,82-0,113-0,78-4.5,59-4.5,68-4.5,78-4.5,68-4.5,56-4.5,103-4.5,5-4.5,82-4.5,114-4.5,41-4.5,80-4.5,71-4.5,82-4.5,72-4.5,78-4.5,103-5,88-4,61-4,22-4,51-4,5-4,5-4.5,47-4,82-4,1-4,78-4.5,111-4,47-4,135-4,5-4,82-4,71-3.5,115-4,1-4,129-4,87-4,59-5,5-5,7-4,115-3.5,51-4,57-4.5,5-3.5,61-4,5-4.5,24-4.5,82-3.5,114-3.5,110-3.5,45-3,134-3,5-4,41-4,78-3.5,82-4,78-4,78-3.5,2-3.5,95-4,61-4,5-3.5,129-3,103-5,78-5,5-5,89-3,55-3,129-2,103-1.5,5-1.5,96-1.5,113-1.5,2-1.5,114-1.5,5-0,87-0,65-0,103-0"; for($i=0;$i<200;$i++){ $tempArr = explode(',',$string); $arr = array_map(function($s) { return explode('-', $s); }, $tempArr); }
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/Ftjc2 on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/Ftjc2 on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/Ftjc2 on line 7
Process exited with code 255.