3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyFixedArray extends \SplFixedArray { protected $foo; protected $bar; } $myFixedArr = new MyFixedArray(1); $myFixedArray[] = 'foo'; var_dump($myFixedArr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2JZRI
function name:  (null)
number of ops:  10
compiled vars:  !0 = $myFixedArr, !1 = $myFixedArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'MyFixedArray'
          1        SEND_VAL_EX                                              1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    8     4        ASSIGN_DIM                                               !1
          5        OP_DATA                                                  'foo'
   10     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class MyFixedArray: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.87 ms | 1394 KiB | 15 Q