3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = str_repeat('[', 5_000_000) . '1' . str_repeat(']', 5_000_000); echo 'Input length: ', number_format(strlen($input) / 1024 / 1024, 3, ',', '.') . ' MiB', PHP_EOL; echo 'Memory before: ', number_format(memory_get_peak_usage(true) / 1024 / 1024, 3, ',', '.') . ' MiB', PHP_EOL; $output = json_decode($input); echo 'Memory after: ', number_format(memory_get_peak_usage(true) / 1024 / 1024, 3, ',', '.') . ' MiB', PHP_EOL;
Output for git.master_jit, git.master
Input length: 9,537 MiB Memory before: 21,078 MiB Memory after: 21,078 MiB

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:
47.03 ms | 405 KiB | 5 Q