3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); for ($i=0; $i<100000; $i++) $a[] = $i; $a = implode(',', $a); // or $a = json_encode($a); echo number_format(memory_get_usage(true)/1048576, 2)."\n"; }
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '}' in /in/JP2bo on line 8
Process exited with code 255.