@ 2014-11-02T19:28:54Z <?php
gc_enable();
class x {
private $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.2.0 string(9) "5.688.840"
string(9) "6.295.552"
string(7) "387.488"
string(9) "4.194.304"
Output for 7.1.0 , 7.1.7 string(9) "5.652.368"
string(9) "6.295.552"
string(7) "351.016"
string(9) "4.194.304"
Output for 7.1.5 - 7.1.6 string(9) "5.653.312"
string(9) "6.295.552"
string(7) "351.960"
string(9) "4.194.304"
Output for 7.0.0 - 7.0.20 string(9) "5.652.416"
string(9) "6.295.552"
string(7) "351.064"
string(9) "4.194.304"
Output for 5.6.7 - 5.6.28 string(10) "10.349.392"
string(10) "10.747.904"
string(7) "224.600"
string(7) "786.432"
Output for 5.5.24 - 5.5.35 string(10) "10.349.360"
string(10) "10.747.904"
string(7) "224.576"
string(7) "786.432"
Output for 5.4.10 - 5.4.45 string(10) "10.349.904"
string(10) "10.747.904"
string(7) "225.088"
string(7) "786.432"
Output for 5.4.0 - 5.4.9 string(10) "10.349.912"
string(10) "10.747.904"
string(7) "225.088"
string(7) "786.432"
Output for 5.3.11 - 5.3.29 string(10) "10.755.160"
string(10) "11.272.192"
string(7) "630.096"
string(9) "1.572.864"
Output for 5.3.0 - 5.3.10 string(10) "10.754.976"
string(10) "11.272.192"
string(7) "629.960"
string(9) "1.310.720"
Output for 5.0.0 - 5.0.5 , 5.1.0 - 5.1.6 , 5.2.0 - 5.2.17 Fatal error: Call to undefined function gc_enable() in /in/dvnXv on line 2
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/dvnXv on line 5
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/dvnXv on line 5
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/dvnXv on line 5
Process exited with code 255 . preferences:dark mode live preview
141.19 ms | 401 KiB | 175 Q