3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.03 ms | 1392 KiB | 13 Q