3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = [ 'Hakim_123.txt', 'Mick_MacKusa.jpg', 'henry_rollins.gif', 'Z_zzz_zzz_zzz.csv' ]; $_GET['postname'] = 'H'; if (!preg_match('~^[A-Z]$~', $_GET['postname'] ?? '')) { exit('Stop trying to hack my scripts'); } exit( json_encode( array_values( array_unique( preg_filter( '~^' . strtolower($_GET['postname']) . '[^_]*\K_.*~', '', array_map('strtolower', $files) ) ) ) ) );
Output for git.master, git.master_jit, rfc.property-hooks
["hakim","henry"]

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