3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // your code goes here $i = 0; while ($i < 5) { echo memory_get_usage() . "\n"; stream_context_create( array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => str_repeat('a', 99), ), ) ); $i++; }
Output for 7.0.0 - 7.1.0
346744 346776 346776 346776 346776
Output for hhvm-3.10.0 - 3.12.0
2097152 2097152 2097152 2097152 2097152
Output for 5.6.0 - 5.6.25
217512 217560 217560 217560 217560
Output for 5.5.0 - 5.5.38
217512 217544 217544 217544 217544
Output for 5.4.10 - 5.4.45
218032 218064 218064 218064 218064
Output for 5.4.0 - 5.4.9
217504 217536 217536 217536 217536
Output for 5.3.11 - 5.3.29
620880 620912 620912 620912 620912
Output for 5.3.0 - 5.3.10
620576 620608 620608 620608 620608
Output for 5.2.10 - 5.2.17
78512 79848 81152 82456 83760
Output for 5.2.7 - 5.2.9
78872 81248 82552 83856 85160
Output for 5.2.3 - 5.2.6
79192 81568 82872 84176 85480
Output for 5.2.1 - 5.2.2
77088 79464 80768 82072 83432
Output for 5.0.0 - 5.2.0
Fatal error: Call to undefined function memory_get_usage() in /in/RHrCW on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: memory_get_usage() in /in/RHrCW on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: memory_get_usage() in /in/RHrCW on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: memory_get_usage() in /in/RHrCW on line 9