3v4l.org

run code in 500+ PHP versions simultaneously
<?php $about_group = array( 'group_label' => 'About', 'group_description' => 'Overview of export report', 'items' => array(), ); $groups = 'Not an array'; // Test and output results. $groups = array_merge( array( 'about' => $about_group ), $groups ); var_dump( $groups ); $groups_count = count( $groups ); var_dump( $groups_count ); $groups_json = json_encode( $groups ); var_dump( $groups_json );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9gLZ8
function name:  (null)
number of ops:  24
compiled vars:  !0 = $about_group, !1 = $groups, !2 = $groups_count, !3 = $groups_json
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1        ASSIGN                                                       !1, 'Not+an+array'
   11     2        INIT_FCALL                                                   'array_merge'
          3        INIT_ARRAY                                           ~6      !0, 'about'
          4        SEND_VAL                                                     ~6
          5        SEND_VAR                                                     !1
          6        DO_ICALL                                             $7      
          7        ASSIGN                                                       !1, $7
   12     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                                     
   14    11        COUNT                                                ~10     !1
         12        ASSIGN                                                       !2, ~10
   15    13        INIT_FCALL                                                   'var_dump'
         14        SEND_VAR                                                     !2
         15        DO_ICALL                                                     
   17    16        INIT_FCALL                                                   'json_encode'
         17        SEND_VAR                                                     !1
         18        DO_ICALL                                             $13     
         19        ASSIGN                                                       !3, $13
   18    20        INIT_FCALL                                                   'var_dump'
         21        SEND_VAR                                                     !3
         22        DO_ICALL                                                     
         23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.24 ms | 3382 KiB | 16 Q