3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strdata = ""; $assets = array( "//fonts.googleapis.com/css?family=Open+Sans:400,300,600,800,700,400italic,600italic,700italic,800italic,300italic", "{$home}css/bootstrap.css", "{$home}css/bootflat.css", "//alexanderjank.de/static/css/bootextend.css", "{$home}css/main.css", "//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" ); foreach ($assets as $url) { ob_start(); eval('"' . $url . '"'); $url = ob_get_clean(); $strdata .= "<link href=\"{$url}\" rel=\"stylesheet\" type=\"text/css\">" . PHP_EOL; }
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: Undefined variable $home in /in/Gng96 on line 6 Warning: Undefined variable $home in /in/Gng96 on line 7 Warning: Undefined variable $home in /in/Gng96 on line 9 Parse error: syntax error, unexpected end of file in /in/Gng96(14) : eval()'d code on line 1
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: home in /in/Gng96 on line 6 Notice: Undefined variable: home in /in/Gng96 on line 7 Notice: Undefined variable: home in /in/Gng96 on line 9 Parse error: syntax error, unexpected end of file in /in/Gng96(14) : eval()'d code on line 1
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Parse error: syntax error, unexpected end of file in /in/Gng96(14) : eval()'d code on line 1
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Notice: Undefined variable: home in /in/Gng96 on line 6 Notice: Undefined variable: home in /in/Gng96 on line 7 Notice: Undefined variable: home in /in/Gng96 on line 9

preferences:
158.82 ms | 402 KiB | 179 Q