3v4l.org

run code in 300+ PHP versions simultaneously
<?php $flat = ['a', 'b', 'c']; $treeish = ['a', 'b' => ['x', 'y', 'z'], 'c']; echo count($flat) . PHP_EOL; echo count($treeish) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E3jUt
function name:  (null)
number of ops:  9
compiled vars:  !0 = $flat, !1 = $treeish
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        COUNT                                            ~4      !0
          3        CONCAT                                           ~5      ~4, '%0A'
          4        ECHO                                                     ~5
    7     5        COUNT                                            ~6      !1
          6        CONCAT                                           ~7      ~6, '%0A'
          7        ECHO                                                     ~7
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.43 ms | 1392 KiB | 13 Q