3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.27 ms | 1393 KiB | 15 Q