3v4l.org

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

Generated using Vulcan Logic Dumper, using php 7.2.0