3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $$v3_1 = array( 'lang' => 'en', // based on client's browser user-agent 'location' => array( // based on client's IP 'countryCode' => 'DE', 'countryName' => 'Germany', 'regionName' => 'North-Rhine-Westphalia', 'cityName' => 'Cologne', ), 'headlines' => array( 'Meet someone for soccer in Cologne today!', 'Find new friends in Cologne who like soccer.', '22,449 people in Cologne want to meet new people for soccer.', ), 'img' => 'http://static.meetone.com/landing/adt/interests/soccer.jpg' ); $v3_2 = array( 'lang' => 'de', // based on client's browser user-agent 'location' => array( // based on client's IP 'countryCode' => 'DE', 'countryName' => 'Deutschland', 'regionName' => 'Bayern', 'cityName' => '', ), 'headlines' => array( 'Treffe heute noch neue Leute zum Fussball in Bayern!', 'Neue Freunde beim Fussball in Bayern finden!', '31,471 Leute in Bayern suchen gerade Leute zum Fussball.', ), 'img' => 'http://static.meetone.com/landing/adt/interests/soccer.jpg' ); print json_encode($v3_1) . PHP_EOL; print json_encode($v3_2);
Output for 5.2.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: v3_1 in /in/mH5bW on line 2 Notice: Undefined variable: v3_1 in /in/mH5bW on line 33 null {"lang":"de","location":{"countryCode":"DE","countryName":"Deutschland","regionName":"Bayern","cityName":""},"headlines":["Treffe heute noch neue Leute zum Fussball in Bayern!","Neue Freunde beim Fussball in Bayern finden!","31,471 Leute in Bayern suchen gerade Leute zum Fussball."],"img":"http:\/\/static.meetone.com\/landing\/adt\/interests\/soccer.jpg"}
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: v3_1 in /in/mH5bW on line 16 Notice: Undefined variable: v3_1 in /in/mH5bW on line 33 null {"lang":"de","location":{"countryCode":"DE","countryName":"Deutschland","regionName":"Bayern","cityName":""},"headlines":["Treffe heute noch neue Leute zum Fussball in Bayern!","Neue Freunde beim Fussball in Bayern finden!","31,471 Leute in Bayern suchen gerade Leute zum Fussball."],"img":"http:\/\/static.meetone.com\/landing\/adt\/interests\/soccer.jpg"}
Output for 5.0.4 - 5.1.6
Notice: Undefined variable: v3_1 in /in/mH5bW on line 2 Fatal error: Call to undefined function json_encode() in /in/mH5bW on line 33
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: v3_1 in /in/mH5bW on line 2 Fatal error: Call to undefined function json_encode() in /in/mH5bW on line 33
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: v3_1 in /in/mH5bW on line 2 Fatal error: Call to undefined function: json_encode() in /in/mH5bW on line 33
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: v3_1 in /in/mH5bW on line 2 Fatal error: Call to undefined function: json_encode() in /in/mH5bW on line 33
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: v3_1 in /in/mH5bW on line 2 Fatal error: Call to undefined function: json_encode() in /in/mH5bW on line 33