3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mce_init = array( 'plugins' => '', 'toolbar1' => '' ); $mce_init['plugins'] .= ',directionality'; $mce_init['toolbar1'] .= ',ltr'; // All is OK: print_r( $mce_init ); unset( $mce_init['plugins'], $mce_init['toolbar1'] ); // Triggers a warning in PHP 5.2.17: $mce_init['plugins'] .= ',directionality'; $mce_init['toolbar1'] .= ',ltr'; print_r( $mce_init ); // Should trigger the reported fatal in https://core.trac.wordpress.org/ticket/45482; $mce_init = 'string'; // '', array(), new stdClass, null, false, etc do not trigger the specific fatal. $mce_init['plugins'] .= ',directionality'; $mce_init['toolbar1'] .= ',ltr'; print_r( $mce_init );
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [plugins] => ,directionality [toolbar1] => ,ltr ) Warning: Undefined array key "plugins" in /in/ZVCKP on line 14 Warning: Undefined array key "toolbar1" in /in/ZVCKP on line 15 Array ( [plugins] => ,directionality [toolbar1] => ,ltr ) Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/ZVCKP:22 Stack trace: #0 {main} thrown in /in/ZVCKP on line 22
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:
63.83 ms | 401 KiB | 8 Q