3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $data = array(); $total = memory_get_usage(true); for ($i=0; $i<1000, $i++) { $data[$i] = $i; } echo memory_get_usage(true) - $total, " bytes"; $var['test'] = 'value';
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
Parse error: syntax error, unexpected ')', expecting ';' in /in/1nF71 on line 7
Process exited with code 255.

preferences:
184.9 ms | 1395 KiB | 55 Q