3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = " HTTP/1.1 200 OK Content-Type: image/jpeg Last-Modified: Mon, 19 Apr 2010 22:39:21 GMT Date: Fri, 16 Nov 2012 08:06:23 GMT Expires: Sat, 16 Nov 2013 08:06:23 GMT X-Content-Type-Options: nosniff Server: sffe Content-Length: 6422 X-XSS-Protection: 1; mode=block Cache-Control: public, max-age=31536000 Age: 610 "; var_dump(split("\n", $str)); ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function split() in /in/q5hil:17 Stack trace: #0 {main} thrown in /in/q5hil on line 17
Process exited with code 255.
Output for 4.3.0 - 5.2.17, hhvm-3.10.0 - 3.12.0
array(14) { [0]=> string(0) "" [1]=> string(15) "HTTP/1.1 200 OK" [2]=> string(24) "Content-Type: image/jpeg" [3]=> string(44) "Last-Modified: Mon, 19 Apr 2010 22:39:21 GMT" [4]=> string(35) "Date: Fri, 16 Nov 2012 08:06:23 GMT" [5]=> string(38) "Expires: Sat, 16 Nov 2013 08:06:23 GMT" [6]=> string(31) "X-Content-Type-Options: nosniff" [7]=> string(12) "Server: sffe" [8]=> string(20) "Content-Length: 6422" [9]=> string(31) "X-XSS-Protection: 1; mode=block" [10]=> string(39) "Cache-Control: public, max-age=31536000" [11]=> string(8) "Age: 610" [12]=> string(0) "" [13]=> string(0) "" }
Output for 5.3.0 - 5.6.28
Deprecated: Function split() is deprecated in /in/q5hil on line 17 array(14) { [0]=> string(0) "" [1]=> string(15) "HTTP/1.1 200 OK" [2]=> string(24) "Content-Type: image/jpeg" [3]=> string(44) "Last-Modified: Mon, 19 Apr 2010 22:39:21 GMT" [4]=> string(35) "Date: Fri, 16 Nov 2012 08:06:23 GMT" [5]=> string(38) "Expires: Sat, 16 Nov 2013 08:06:23 GMT" [6]=> string(31) "X-Content-Type-Options: nosniff" [7]=> string(12) "Server: sffe" [8]=> string(20) "Content-Length: 6422" [9]=> string(31) "X-XSS-Protection: 1; mode=block" [10]=> string(39) "Cache-Control: public, max-age=31536000" [11]=> string(8) "Age: 610" [12]=> string(0) "" [13]=> string(0) "" }