3v4l.org

run code in 300+ PHP versions simultaneously
<?php $about_group = array( 'group_label' => 'About', 'group_description' => 'Overview of export report', 'items' => array(), ); $groups = 'Not an array'; if ( is_array( $groups ) ) { $groups = array_merge( array( 'about' => $about_group ), $groups ); $groups_count = count( $groups ); } else { // _doing_it_wrong() here. echo "_doing_it_wrong \n"; $groups = null; $groups_count = 0; } // Test and output results. var_dump( $groups ); var_dump( $groups_count ); $groups_json = json_encode( $groups ); var_dump( $groups_json );
Output for git.master, git.master_jit, rfc.property-hooks
_doing_it_wrong NULL int(0) string(4) "null"

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