3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = './CatDV/S1/SFX/steam/6004_90_04 LargeHeadlightSm.wav ./CatDV/S1/SFX/steam/AirHissPressureRe HIT032001.wav ./CatDV/S1/SFX/steam/Impact_Metal_Bullet_Hit(1).wav ./CatDV/S1/SFX/steam/Impact_Metal_Bullet_Hit.wav ./CatDV/S1/SFX/steam/6004_94_02 LargeHeavyGlassS.wav ./CatDV/S1/SFX/steam/Impact_Glass_Smash.wav ./CatDV/S1/SFX/steam/AirReleaseHeavyAi HIT030701.wav ./CatDV/S1/SFX/steam/SDR02_15SCIF RhythmicRever.wav ./CatDV/S1/SFX/steam/VAL02_08CRSH GlassBreaking.wav ./CatDV/S1/SFX/steam/AirReleaseLargeAi HIT030601.wav ./CatDV/S1/SFX/steam/SDR02_14SCIF Rhythmic3Beat.wav ./CatDV/S1/SFX/steam/6004_94_01 LargeGlassSmash.wav'; var_dump(createTree($file)); function splitIntoPaths($string) { $paths = array(); foreach (explode("\n", $string) as $line) { $node = &$paths; foreach (explode("/", $line) as $segment) { if (!isset($node[$segment])) { $node[$segment] = array(); } $node = &$node[$segment]; } $node = $line; } return $paths; } function createTree($string) { $paths = splitIntoPaths($string); $cb = function($array) use (&$cb) { $return = '<ul>'; foreach ($array as $key => $value) { $return .= '<li>' . $key; if (is_array($value)) { $return .= $cb($value); } $return .= '</li>'; } $return .= '</ul>'; return $return; } return $cb($paths); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.280.0040.03812.41
5.4.270.0050.04512.41
5.4.260.0100.04412.41
5.4.250.0120.06312.41
5.4.240.0090.04912.41
5.4.230.0090.03712.40
5.4.220.0040.03912.40
5.4.210.0100.03212.40
5.4.200.0040.04012.40
5.4.190.0060.03812.40
5.4.180.0050.03812.40
5.4.170.0050.03812.40
5.4.160.0070.03712.40
5.4.150.0070.03612.39
5.4.140.0040.04212.09
5.4.130.0070.03612.07
5.4.120.0090.03512.03
5.4.110.0050.04012.03
5.4.100.0070.03712.03
5.4.90.0090.05212.03
5.4.80.0100.04912.03
5.4.70.0090.04912.03
5.4.60.0100.04912.02
5.4.50.0090.04412.02
5.4.40.0100.04612.01
5.4.30.0100.05012.01
5.4.20.0100.04912.00
5.4.10.0140.03612.01
5.4.00.0100.04611.50
5.3.280.0120.04412.71
5.3.270.0070.03912.72
5.3.260.0110.04712.72
5.3.250.0080.04612.72
5.3.240.0060.04212.72
5.3.230.0070.04612.71
5.3.220.0090.03912.68
5.3.210.0100.03812.68
5.3.200.0120.07212.68
5.3.190.0100.04712.68
5.3.180.0100.04712.67
5.3.170.0100.06012.67
5.3.160.0120.05212.67
5.3.150.0110.04712.67
5.3.140.0090.04512.66
5.3.130.0080.05812.66
5.3.120.0100.06112.66
5.3.110.0070.04712.66
5.3.100.0110.05312.13
5.3.90.0120.04212.10
5.3.80.0080.04212.09
5.3.70.0060.04712.10
5.3.60.0130.06112.07
5.3.50.0090.04712.02
5.3.40.0080.03912.02
5.3.30.0060.03811.98
5.3.20.0050.03911.76
5.3.10.0090.03511.73
5.3.00.0040.04311.72

preferences:
134.76 ms | 1398 KiB | 7 Q