3v4l.org

run code in 300+ PHP versions simultaneously
<?php $block = 'core/quote'; $input = array( 'styles' => array( 'blocks' => array( 'core/quote' => array( 'variations' => '', ), ), ) ); $style_variation_names = isset( $input['styles']['blocks'][ $block ]['variations'] ) ? array_keys( $input['styles']['blocks'][ $block ]['variations'] ) : array(); var_dump( $style_variation_names );
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, string given in /in/kHpHT:15 Stack trace: #0 /in/kHpHT(15): array_keys('') #1 {main} thrown in /in/kHpHT on line 15
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:
53.92 ms | 2725 KiB | 4 Q