3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( new stdClass, "hello", 3, array("baz", "bay"), "world" );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fb2k5
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~3      $1
    5     3        ADD_ARRAY_ELEMENT                                ~3      'hello'
    6     4        ADD_ARRAY_ELEMENT                                ~3      3
    4     5        ADD_ARRAY_ELEMENT                                ~3      <array>
    8     6        ADD_ARRAY_ELEMENT                                ~3      'world'
    3     7        ASSIGN                                                   !0, ~3
    9     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.87 ms | 1392 KiB | 13 Q