3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = new SplDoublyLinkedList; $list->push("foo"); $list->push("bar"); $ser = $list->serialize(); var_dump($ser); var_dump(unserialize($ser)); $list->setIteratorMode(3); $ser = $list->serialize(); var_dump($ser); var_dump(unserialize($ser));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ei9ke
function name:  (null)
number of ops:  37
compiled vars:  !0 = $list, !1 = $ser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'SplDoublyLinkedList'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    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_METHOD_CALL                                         !0, 'serialize'
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !1, $7
    6    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'unserialize'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                                 
    8    21        INIT_METHOD_CALL                                         !0, 'setIteratorMode'
         22        SEND_VAL_EX                                              3
         23        DO_FCALL                                      0          
    9    24        INIT_METHOD_CALL                                         !0, 'serialize'
         25        DO_FCALL                                      0  $13     
         26        ASSIGN                                                   !1, $13
   10    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                                 
   11    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'unserialize'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                         $16     
         34        SEND_VAR                                                 $16
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.73 ms | 1396 KiB | 17 Q