3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { $run = eval('return function(){};'); } echo "0 ", number_format(memory_get_usage())."\n"; for ($i = 0; $i <= 100000; $i++) { test(); if (strlen(rtrim($i, "0")) == 1) { echo str_pad($i,6), " ", number_format(memory_get_usage())."\n"; } }

Abusive script

This script was stopped while abusing our resources

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
167.76 ms | 2341 KiB | 13 Q