3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 'greg,lydia,derek,rachelle,kayla,diane,brian'; $array = split(',',$x,50); foreach( $array as $key => $value ){ echo $key."\t=>\t".$value."\n"; }
based on 6teJd
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function split() in /in/D7bAj:4 Stack trace: #0 {main} thrown in /in/D7bAj on line 4
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Deprecated: Function split() is deprecated in /in/D7bAj on line 4 0 => greg 1 => lydia 2 => derek 3 => rachelle 4 => kayla 5 => diane 6 => brian