3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Initial settings:'.PHP_EOL; echo 'zend.assertions: '.ini_get('zend.assertions').PHP_EOL; echo 'assert.active: '.ini_get('assert.active').PHP_EOL; ini_set('zend.assertions', 0); assert_options(ASSERT_ACTIVE, 0); echo 'After altering settings:'.PHP_EOL; echo 'zend.assertions: '.ini_get('zend.assertions').PHP_EOL; echo 'assert.active: '.ini_get('assert.active').PHP_EOL; $assert = false; assert($assert = true); if($assert) echo 'Code in assert() was evaluated'.PHP_EOL; else echo 'Code in assert() was NOT evaluated'.PHP_EOL;
based on 0VkPp

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch master
Initial settings: zend.assertions: 1 assert.active: 1 After altering settings: zend.assertions: 0 assert.active: 0 Code in assert() was NOT evaluated
Output for branch partials
Initial settings: zend.assertions: 1 assert.active: 1 After altering settings: zend.assertions: 0 assert.active: 0 Code in assert() was NOT evaluated

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