3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayObject = new ArrayObject(); $arrayObject->append(new stdClass()); $arrayObject->append(new stdClass()); var_dump(end($arrayObject));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0F845
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arrayObject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ArrayObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'append'
          4        NEW                                              $4      'stdClass'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $4
          7        DO_FCALL                                      0          
    5     8        INIT_METHOD_CALL                                         !0, 'append'
          9        NEW                                              $7      'stdClass'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $7
         12        DO_FCALL                                      0          
    7    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'end'
         15        SEND_REF                                                 !0
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.06 ms | 1394 KiB | 17 Q