3v4l.org

run code in 500+ PHP versions simultaneously
<?php class PromoManager { public $promo_credit; public $promo_code; } $obj = new PromoManager(); $obj->promo_credit = 99999; $obj->promo_code = "whatever"; echo base64_encode(serialize($obj)); ?><?php class PromoManager { public $promo_credit; public $promo_code; } $obj = new PromoManager(); $obj->promo_credit = 99999; $obj->promo_code = "whatever"; echo base64_encode(serialize($obj)); ?>
Output for git.master_jit, git.master
TzoxMjoiUHJvbW9NYW5hZ2VyIjoyOntzOjEyOiJwcm9tb19jcmVkaXQiO2k6OTk5OTk7czoxMDoicHJvbW9fY29kZSI7czo4OiJ3aGF0ZXZlciI7fQ== Fatal error: Cannot redeclare class PromoManager (previously declared in /in/jtmOf:2) in /in/jtmOf on line 13 Stack trace: #0 {main}
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.47 ms | 747 KiB | 4 Q