3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static $array = []; } Test::$array = range(0, 32800); var_dump(sizeof(Test::$array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E329l
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 32800
          3        DO_ICALL                                         $1      
          4        ASSIGN_STATIC_PROP                                       'array', 'Test'
          5        OP_DATA                                                  $1
   11     6        INIT_FCALL                                               'var_dump'
          7        FETCH_STATIC_PROP_R          unknown             ~2      'array'
          8        COUNT                                            ~3      ~2
          9        SEND_VAL                                                 ~3
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.8 ms | 1394 KiB | 17 Q