3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ('backtrace', 'print'); array_walk($array, 'walk_callback', str_repeat("\0",1337*1337)); function walk_callback($value, $key, $userdata) { if ($value == 'print') { print($userdata); exit("\n\n"); } elseif ($value == 'backtrace') { debug_backtrace(); if ($userdata !== str_repeat("\0",1337*1337)) { die("won't get here, \$userdata is still clean until we return"); } } }
Output for 7.0.20, 7.1.5 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6

Process exited with code 137.

preferences:
296.33 ms | 439 KiB | 164 Q