3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = [ [ 'style' => [ 'text-align' => '', ] ], [ 'style' => [ ] ] ]; $key = 0; if (isset($dom[$key]['style']['text-align'])) { $align = strtoupper($dom[$key]['style']['text-align'][0]); var_dump('should be called but raise an error'); } if (isset($dom[$key]['style']['text-align'][0])) { var_dump('should not be called'); } $key = 1; if (isset($dom[$key]['style']['text-align'][0])) { var_dump('should not be called because text-align key is not defined'); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Uninitialized string offset 0 in /in/gVpPk on line 16 string(35) "should be called but raise an error"

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:
44.99 ms | 405 KiB | 5 Q