3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = new ArrayIterator(); $listCloned = clone $list; $list->append("primeiro valor"); $listCloned->append("segundo valor"); var_dump($list , $listCloned);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G7Gp6
function name:  (null)
number of ops:  16
compiled vars:  !0 = $list, !1 = $listCloned
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ArrayIterator'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
          3        CLONE                                            ~5      !0
          4        ASSIGN                                                   !1, ~5
          5        INIT_METHOD_CALL                                         !0, 'append'
          6        SEND_VAL_EX                                              'primeiro+valor'
          7        DO_FCALL                                      0          
          8        INIT_METHOD_CALL                                         !1, 'append'
          9        SEND_VAL_EX                                              'segundo+valor'
         10        DO_FCALL                                      0          
         11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.55 ms | 1394 KiB | 15 Q