3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.53 ms | 1395 KiB | 17 Q