3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $a; session_start(); echo session_id() /*$xmlString = <<<XML <root> <teams> <team>Silverbacks</team> <team>Golden Eyes</team> </teams> </root> XML; $domDoc = new DOMDocument(); $domDoc->loadXML($xmlString); $textElement = $domDoc->createElement('team', 'Bearhides'); $result = $domDoc->xpath('teams/team[2]'); $result[1]->insertBefore($textElement); echo $domDoc->saveXML."\n\n"; //print_r($domDoc->saveXML() */ ?>
based on 9phLN
Output for 7.2.0 - 7.3.0rc3
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot start session when headers already sent in /in/VaB7k on line 4
Output for 7.1.23
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 284a0e2e3d191a77cbfa0434668499e7
Output for 7.1.22
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 8e006a609c5ea2601c5909bcf876da75
Output for 7.1.21
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 0a5e9a64a4caa0ad30429cd72ca21899
Output for 7.1.20
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 997b8b4481808e52c745e4b1703696ce
Output for 7.1.19
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 c80b7ea92c44c3200b53ea600948660a
Output for 7.1.18
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 06d734d0ad8b06342a50d1bd5d5bc2ad
Output for 7.1.17
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 33bca4efc9d98250ac5a135c3c474892
Output for 7.1.16
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 68375dd53b8e6960f469e39038953236
Output for 7.1.15
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 d475d8625954e54b0616dd5b8ed2512a
Output for 7.1.14
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 3142f92d26769334227db79436fb92c7
Output for 7.1.13
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 21eaaefa7cc5ea9703d3902f5312efa9
Output for 7.1.12
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 c1abf6c5b5e18584c0616c1a42489912
Output for 7.1.11
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 4fff6f8ab67cf16b10572810a3693a8c
Output for 7.1.10
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 176c61fde8724a30503cb99654e8ec3e
Output for 7.1.9
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 99a4fe983808874193090b5fb59eb9d6
Output for 7.1.8
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 8dd4170362df64964ff0e83ab768db16
Output for 7.1.7
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 0cbc716b2d1412a364de04e70d4308b7
Output for 7.1.6
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 c0a0159e24f99d4d1b07f28dd612b395
Output for 7.1.5
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 885d279b7740c07b548e44e303466260
Output for 7.1.4
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 03eb642ab48c5d1ec793e99be9963cd7
Output for 7.1.3
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 8d3d9b1be4cbe6794df44d150c390e66
Output for 7.1.2
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 f835c505834b42ab450cfc360b91fb1c
Output for 7.1.1
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 db7f7f761b3e87b427de0e8ac993e1b3
Output for 7.1.0
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 0b2bd94b9e4e0a4ba62a19113461e0df
Output for 7.0.28
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 96d1d47fc3a5bc335441865b8436dfd2
Output for 5.6.38
Notice: Undefined variable: a in /in/VaB7k on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/VaB7k:3) in /in/VaB7k on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/VaB7k:3) in /in/VaB7k on line 4 699510db9c3e0cd2424b5ef74f2c1620