@ 2014-11-02T19:11:40Z <?php
class x {
public $value;
public function __construct($value) {
$this->value = $value;
}
}
$array = array();
for($i = 0; $i < 50000; $i++) {
$array[] = md5('Hallo');
}
$x = new x($array);
var_dump(number_format(memory_get_usage(), 0, ',', '.')) . "\n";
var_dump(number_format(memory_get_usage(true), 0,',','.')) . "\n";
unset($array);
unset($x);
var_dump(number_format(memory_get_usage(), 0, ',', '.')) . "\n";
var_dump(number_format(memory_get_usage(true), 0,',','.')) . "\n";
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.3.0 string(9) "5.692.000"
string(9) "6.295.552"
string(7) "390.648"
string(9) "4.194.304"
Output for 7.2.0 - 7.2.13 string(9) "5.688.336"
string(9) "6.295.552"
string(7) "386.984"
string(9) "4.194.304"
Output for 7.1.0 - 7.1.25 string(9) "5.651.792"
string(9) "6.295.552"
string(7) "350.440"
string(9) "4.194.304"
Output for 7.0.0 - 7.0.33 string(9) "5.651.840"
string(9) "6.295.552"
string(7) "350.488"
string(9) "4.194.304"
Output for 5.6.0 - 5.6.38 string(10) "10.348.792"
string(10) "10.747.904"
string(7) "224.016"
string(7) "786.432"
Output for 5.5.0 - 5.5.38 string(10) "10.348.792"
string(10) "10.747.904"
string(7) "223.992"
string(7) "786.432"
Output for 5.4.10 - 5.4.45 string(10) "10.349.280"
string(10) "10.747.904"
string(7) "224.504"
string(7) "786.432"
Output for 5.4.0 - 5.4.9 string(10) "10.349.272"
string(10) "10.747.904"
string(7) "224.504"
string(7) "786.432"
Output for 5.3.11 - 5.3.29 string(10) "10.754.264"
string(10) "11.272.192"
string(7) "629.264"
string(9) "1.310.720"
Output for 5.3.0 - 5.3.10 string(10) "10.753.984"
string(10) "11.272.192"
string(7) "628.960"
string(9) "1.310.720"
Output for 5.2.10 - 5.2.17 string(9) "9.812.480"
string(10) "10.223.616"
string(6) "87.240"
string(7) "786.432"
Output for 5.2.7 - 5.2.9 string(9) "9.814.176"
string(10) "10.223.616"
string(7) "218.376"
string(7) "786.432"
Output for 5.2.6 string(9) "9.814.504"
string(10) "10.223.616"
string(7) "218.696"
string(7) "786.432"
Output for 5.2.3 - 5.2.5 string(9) "9.814.488"
string(9) "9.961.472"
string(7) "218.696"
string(9) "1.048.576"
Output for 5.2.2 string(9) "9.812.536"
string(9) "9.961.472"
string(7) "216.720"
string(7) "786.432"
Output for 5.2.1 string(9) "9.811.968"
string(9) "9.961.472"
string(7) "118.392"
string(7) "786.432"
Output for 5.0.0 - 5.0.5 , 5.1.0 - 5.1.6 , 5.2.0 Fatal error: Call to undefined function memory_get_usage() in /in/2EBN0 on line 17
Process exited with code 255 . Output for 4.4.2 - 4.4.9 Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/2EBN0 on line 4
Process exited with code 255 . Output for 4.3.0 - 4.3.1 , 4.3.5 - 4.3.11 , 4.4.0 - 4.4.1 Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/2EBN0 on line 4
Process exited with code 255 . Output for 4.3.2 - 4.3.4 Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/2EBN0 on line 4
Process exited with code 255 . preferences:dark mode live preview
203.53 ms | 401 KiB | 287 Q