3v4l.org

run code in 300+ PHP versions simultaneously
<?php // get all icons getSetByPrefix $icons = []; foreach (config('blade-icons.sets') as $key => $value) { $icons[$key] = []; $path = $value['path']; $prefix = $value['prefix']; $files = scandir($path); foreach ($files as $file) { if (strpos($file, '.svg') !== false) { $name = str_replace('.svg', '', $file); $icons[$key][] = $prefix . '-' . $name; } } }
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function config() in /in/b3s6j:6 Stack trace: #0 {main} thrown in /in/b3s6j on line 6
Process exited with code 255.

preferences:
97.07 ms | 402 KiB | 89 Q