3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // haal alle renders van een bepaalde versie op $versionId = 3000; $html = ''; // haal alleen afbeeldingen op die bij deze versie horen $projectMediaVersion = \Doctrine_Query::create() ->select('pmv.projectMediaId') ->from('I3ProjectMediaVersion pmv') ->where('pmv.versionId = ?', $versionId) ->execute(); foreach($projectMediaVersion as $pmv) { $html .= '<img src="'.WEB_MEDIA.'/'.$pmv->I3ProjectMedia->I3Media->file.'.'.$pmv->I3ProjectMedia->I3Media->extension.'" />'; } echo $html; ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'Doctrine_Query' not found in /in/YYKUD:10 Stack trace: #0 {main} thrown in /in/YYKUD on line 10
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Class undefined: Doctrine_Query in /in/YYKUD on line 10
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Fatal error: Class 'Doctrine_Query' not found in /in/YYKUD on line 10
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/YYKUD on line 10 Fatal error: Class 'Doctrine_Query' not found in /in/YYKUD on line 10
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/YYKUD</b> on line <b>10</b><br /> <br /> <b>Fatal error</b>: Class 'Doctrine_Query' not found in <b>/in/YYKUD</b> on line <b>10</b><br />
Process exited with code 255.
Output for 4.4.2 - 4.4.9
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/YYKUD</b> on line <b>10</b><br /> <br /> <b>Parse error</b>: syntax error, unexpected T_OBJECT_OPERATOR in <b>/in/YYKUD</b> on line <b>11</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/YYKUD</b> on line <b>10</b><br /> <br /> <b>Parse error</b>: parse error, unexpected T_OBJECT_OPERATOR in <b>/in/YYKUD</b> on line <b>11</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/YYKUD</b> on line <b>10</b><br /> <br /> <b>Parse error</b>: parse error in <b>/in/YYKUD</b> on line <b>11</b><br />
Process exited with code 255.