3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', '512M'); echo "Memory limit: ", ini_get('memory_limit'), "\n\n"; $finfo = new finfo(FILEINFO_MIME_TYPE); $minSize = 128 * 1024; $maxSize = 16 * 1024 * 1024; for($size = $minSize; $size <= $maxSize; $size *= 2) { $content = str_repeat('0', $size); echo "Content size: ", number_format(strlen($content)/1024/1024, 1), "M\n"; $finfo->buffer($content); echo "Peak memory usage: ", number_format(memory_get_peak_usage(true)/1024/1024, 1), "M\n\n"; }

Abusive script

This script was stopped while abusing our resources

Output for git.master_jit
Memory limit: 512M Content size: 0.1M Peak memory usage: 2.0M Content size: 0.3M Peak memory usage: 2.0M Content size: 0.5M Peak memory usage: 2.0M Content size: 1.0M Peak memory usage: 4.0M Content size: 2.0M Peak memory usage: 6.0M Content size: 4.0M Peak memory usage: 10.0M Content size: 8.0M Peak memory usage: 16.0M Fatal error: Out of memory (allocated 12587008 bytes) (tried to allocate 16777248 bytes) in /in/LNNoV on line 10 mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory
Process exited with code 255.
Output for git.master, rfc.property-hooks
Memory limit: 512M Content size: 0.1M Peak memory usage: 2.0M Content size: 0.3M Peak memory usage: 2.0M Content size: 0.5M Peak memory usage: 2.0M Content size: 1.0M Peak memory usage: 4.0M Content size: 2.0M Peak memory usage: 6.0M Content size: 4.0M Peak memory usage: 10.0M Content size: 8.0M Peak memory usage: 16.0M Content size: 16.0M Peak memory usage: 28.0M

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
52.48 ms | 408 KiB | 5 Q