3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = new SplDoublyLinkedList(); $list->push('a'); $list->push('b'); $list->push('c'); $list->push('d'); var_dump((array) $list);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d6LBG
function name:  (null)
number of ops:  20
compiled vars:  !0 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SplDoublyLinkedList'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'push'
          4        SEND_VAL_EX                                              'a'
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'push'
          7        SEND_VAL_EX                                              'b'
          8        DO_FCALL                                      0          
    6     9        INIT_METHOD_CALL                                         !0, 'push'
         10        SEND_VAL_EX                                              'c'
         11        DO_FCALL                                      0          
    7    12        INIT_METHOD_CALL                                         !0, 'push'
         13        SEND_VAL_EX                                              'd'
         14        DO_FCALL                                      0          
    9    15        INIT_FCALL                                               'var_dump'
         16        CAST                                          7  ~8      !0
         17        SEND_VAL                                                 ~8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.32 ms | 1394 KiB | 15 Q