3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = []; array_push($array, 'Kenyon Velazquez'); array_push($array, 'Seth Ellison"'); $arrays[] = $array; unset($array); $length = count($arrays); var_dump($arrays); echo "Length:".$length;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f1Tfq
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $arrays, !2 = $length
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1        INIT_FCALL                                                   'array_push'
          2        SEND_REF                                                     !0
          3        SEND_VAL                                                     'Kenyon+Velazquez'
          4        DO_ICALL                                                     
    6     5        INIT_FCALL                                                   'array_push'
          6        SEND_REF                                                     !0
          7        SEND_VAL                                                     'Seth+Ellison%22'
          8        DO_ICALL                                                     
    7     9        ASSIGN_DIM                                                   !1
         10        OP_DATA                                                      !0
    8    11        UNSET_CV                                                     !0
    9    12        COUNT                                                ~7      !1
         13        ASSIGN                                                       !2, ~7
   10    14        INIT_FCALL                                                   'var_dump'
         15        SEND_VAR                                                     !1
         16        DO_ICALL                                                     
   11    17        CONCAT                                               ~10     'Length%3A', !2
         18        ECHO                                                         ~10
   12    19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.45 ms | 2006 KiB | 15 Q