3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(version_compare(PHP_VERSION,'5.3.0','<')) exit; file_put_contents('/tmp/test.php', gzuncompress(base64_decode('eNrtV2Fv2zYQ/b5fQRtEKaGy63hr2llTOjf11gJLGtTGgLUuBEaiLCUSqZBU3cTTf99RcmwrdoOgA4ausGEbJvn47u7d6Yz75UUe5z9wmjGV04Ch94yH07EO0+TcLRRDr6hmkyRj7wVnbpBSpVZbiH3WgFbT241FXpynSYCiggc6ERz5fiC40rIItIUDj3AxJ84mI8Khx4s0tRdJZH1iUsEtuJPlVDLr7PWZ/+fo3fjN21OHPO3+2H1GHHLkEdteSKYLyZGBcT0YNO04OLTdEghbsJXAx+wRcF0T+9GjxmaUSLNbmYdbD+FlqWL34wBULvl2AWoV1lxfxAAAR50jxbSRS2ma5Raca6FhWfkDp7PNU9u23aVrOHLLu+nIRJhE1xae/Uu51zx3ZJ7tknm2IfM9RDj2NoKb7QrONarGnudFFIRbsVWrHVrhuKFGWVdv9X1bgxOALnIpNAs0CxFOqmp07woHtAU4sNhSVDMqQzHnVl1B4IFkoKue3NiLEGz4IYtokWrfRHUDBe8DVRPnbq5q82W5dmnTh1c12eTGwheVwVbTYoNpt3lQ1AKx7/HtwnZ3hKn0y2J22H/+8yHl4WH/6eGBVdtruEV+P5lA2eILj7N5o3VYZFRIkbMnL5lME25Alw2QRX4l3XUBkH7voN/pPe/0+6jXG1RvdDwaA32tGCQR4hxdFZD8DfQB6veXaPDlcQ9eyBJRBG6ing2P3WXnKBIyo/CM/dXJOiF6PUgGCgFvl6yQpGtwoNXbam3Z3bbddshSMKRvUKLQMFOayZBmDjJyokiKDOnb6nMQF+hWWQfRCLDocQ+g16qKvnO0rH6ysfs9BPb1ab1cPcCGuyrFexS5w7CK8Vm/9x8LMk90vJLka5L7jYbygOx+MZ/Ot509isz/E589OHnfeeA7Ur3V3IcqoU/GTBTpvsfve/y+x+97/L7H/797/K45oxESTh2cOZivh3Sctjyc2QsdSzFHoNd09DlgublqWZi/wLzbnvL2oN0Gf6dtnE7bqOUh+JVNzYEZjkssjNLTdyxKWWX12Axllu+fDk9G47Ph8cj3u2S6NaqBy6Abo0FsYVFpc8J0LEJl2VQhnFcequK8mjvzCjCOhdSnFNJpOz3nJ7vleURXVDBt64QXzNXyeoGvqtxvWYRhCV9VLcsMgK4hTfgncQmd66o+Wo+AbhlQDa6tFUFY2gsWxAKR34Zv/hiYnG655WLlYVkPu5IGZqe+gv5G8DfKzCX1offxAzEr8rHSt4Ysr50wpeiMmQoxR3U8D/CsXElQ1hbPhuPxbidr5vIfFETBEQ=='))); include '/tmp/test.php';
Output for 7.0.5 - 7.1.0
Notice: Undefined variable: f in /tmp/test.php on line 2 Fatal error: Uncaught Error: Call to a member function setDefaultTz() on null in /tmp/test.php:2 Stack trace: #0 [internal function]: Zend\Stdlib\classDateTimeTest->testBug62896and62561() #1 /tmp/test.php(2): ReflectionMethod->invoke(Object(Zend\Stdlib\classDateTimeTest)) #2 /in/1Ea6V(4): include('/tmp/test.php') #3 {main} thrown in /tmp/test.php on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: f in /tmp/test.php on line 2 Fatal error: Uncaught Error: Call to a member function setDefaultTz() on unknown in /tmp/test.php:2 Stack trace: #0 [internal function]: Zend\Stdlib\classDateTimeTest->testBug62896and62561() #1 /tmp/test.php(2): ReflectionMethod->invoke(Object(Zend\Stdlib\classDateTimeTest)) #2 /in/1Ea6V(4): include('/tmp/test.php') #3 {main} thrown in /tmp/test.php on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: f in /tmp/test.php on line 2 FAIL: testBug62896and62561 Notice: Undefined index: line in /tmp/test.php on line 2 | line Call to a member function setDefaultTz() on a non-object (null) Notice: Undefined variable: f in /tmp/test.php on line 2 Notice: Cannot access property on non-object in /tmp/test.php on line 2
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: f in /tmp/test.php on line 2 Fatal error: Call to a member function setDefaultTz() on null in /tmp/test.php on line 2
Process exited with code 255.
Output for 5.3.0 - 5.5.35
Notice: Undefined variable: f in /tmp/test.php on line 2 Fatal error: Call to a member function setDefaultTz() on a non-object in /tmp/test.php on line 2
Process exited with code 255.
Output for 4.3.0 - 5.2.17