3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_test = array(1 => 'asd', 2 => 'dbc', 3 => 'true', 12 => 'end.'); echo sizeof(array_test).'<br>'; // будет 12 echo count(array_test); // будет 4
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W1jlB
function name:  (null)
number of ops:  9
compiled vars:  !0 = $array_test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_CONSTANT                                   ~2      'array_test'
          2        COUNT                                            ~3      ~2
          3        CONCAT                                           ~4      ~3, '%3Cbr%3E'
          4        ECHO                                                     ~4
    4     5        FETCH_CONSTANT                                   ~5      'array_test'
          6        COUNT                                            ~6      ~5
          7        ECHO                                                     ~6
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.56 ms | 1397 KiB | 13 Q