3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ArrayBase extends \ArrayObject { } class SpecializedArray extends ArrayBase { } $a = new SpecializedArray; $a->append("a"); var_dump($a); var_dump($a->getArrayCopy()); var_dump(["a"]); var_dump(["a"] == $a->getArrayCopy());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/35VOJ
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'SpecializedArray'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'append'
          4        SEND_VAL_EX                                              'a'
          5        DO_FCALL                                      0          
   15     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   16     9        INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !0, 'getArrayCopy'
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
   17    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAL                                                 <array>
         16        DO_ICALL                                                 
   18    17        INIT_FCALL                                               'var_dump'
         18        INIT_METHOD_CALL                                         !0, 'getArrayCopy'
         19        DO_FCALL                                      0  $9      
         20        IS_EQUAL                                         ~10     $9, <array>
         21        SEND_VAL                                                 ~10
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class ArrayBase: [no user functions]
Class SpecializedArray: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.07 ms | 1395 KiB | 15 Q