3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Forums {} $array = new Forums; $encode = (serialize($array)); echo $encode, PHP_EOL; echo base64_encode(gzcompress($encode)), PHP_EOL, PHP_EOL, PHP_EOL;
Output for 5.0.2 - 7.1.0
O:6:"Forums":0:{} eJzztzKzUnLLLyrNLVayMrCqrgUALPoFVg==
Output for 5.0.0 - 5.0.1
O:6:"Forums":0:{} Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/kMZrp on line 4 PHP_EOLeJzztzKzUnLLLyrNLVayMrCqrgUALPoFVg== Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/kMZrp on line 5 PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/kMZrp on line 5 PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/kMZrp on line 5 PHP_EOL
Output for 4.3.10 - 4.4.9
O:6:"forums":0:{} eJzztzKzUkrLLyrNLVayMrCqrgUALnoFdg==
Output for 4.3.0 - 4.3.9
O:6:"forums":0:{} Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/kMZrp on line 4 PHP_EOLeJzztzKzUkrLLyrNLVayMrCqrgUALnoFdg== Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/kMZrp on line 5 PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/kMZrp on line 5 PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/kMZrp on line 5 PHP_EOL