3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [1, 2, 3], 'toto', [4,5,6] ]; echo count($arr), PHP_EOL, count($arr, COUNT_RECURSIVE), PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mcolv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        COUNT                                            ~2      !0
          2        ECHO                                                     ~2
          3        ECHO                                                     '%0A'
          4        INIT_FCALL                                               'count'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
          9        ECHO                                                     '%0A'
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.35 ms | 1393 KiB | 15 Q