3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // This is only an example, the numbers below will // differ depending on your system echo memory_get_usage() . "\n"; // 36640 $a = str_repeat("Hello", 4242); echo memory_get_usage() . "\n"; // 57960 unset($a); echo memory_get_usage() . "\n"; // 36744
Output for 7.0.0 - 7.1.0
346112 370720 346144
Output for hhvm-3.10.0 - 3.12.0
2097152 2097152 2097152
Output for 5.6.0 - 5.6.28
216960 238376 217008
Output for 5.5.0 - 5.5.38
216960 238368 216992
Output for 5.4.10 - 5.4.45
217480 238888 217512
Output for 5.4.0 - 5.4.9
216952 238360 216984
Output for 5.3.11 - 5.3.29
620104 641512 620136
Output for 5.3.0 - 5.3.10
619800 641208 619832
Output for 5.2.10 - 5.2.17
77776 99176 77808
Output for 5.2.7 - 5.2.9
78144 99616 78480
Output for 5.2.3 - 5.2.6
78464 99936 78800
Output for 5.2.2
76392 97800 76664
Output for 5.2.1
76392 97800 76568
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.2.0
Fatal error: Call to undefined function memory_get_usage() in /in/hFZe9 on line 6
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/hFZe9 on line 14
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: memory_get_usage() in /in/hFZe9 on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: memory_get_usage() in /in/hFZe9 on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: memory_get_usage() in /in/hFZe9 on line 6