3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $bar; } $foo = new Foo; $arr = array("", " ", FALSE, TRUE, array(), NULL, "0", 0, 0.0, new stdClass, $foo, $foo->bar, "\0"); // echo Foo::bar; // foreach($arr as $val){ var_dump($val); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rBS9q
function name:  (null)
number of ops:  21
compiled vars:  !0 = $foo, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_ARRAY                                       ~5      ''
          4        ADD_ARRAY_ELEMENT                                ~5      '+'
          5        ADD_ARRAY_ELEMENT                                ~5      <false>
          6        ADD_ARRAY_ELEMENT                                ~5      <true>
          7        ADD_ARRAY_ELEMENT                                ~5      <array>
          8        ADD_ARRAY_ELEMENT                                ~5      null
          9        ADD_ARRAY_ELEMENT                                ~5      '0'
         10        ADD_ARRAY_ELEMENT                                ~5      0
         11        ADD_ARRAY_ELEMENT                                ~5      0
         12        NEW                                              $6      'stdClass'
         13        DO_FCALL                                      0          
         14        ADD_ARRAY_ELEMENT                                ~5      $6
         15        ADD_ARRAY_ELEMENT                                ~5      !0
         16        FETCH_OBJ_R                                      ~8      !0, 'bar'
         17        ADD_ARRAY_ELEMENT                                ~5      ~8
         18        ADD_ARRAY_ELEMENT                                ~5      '%00'
         19        ASSIGN                                                   !1, ~5
    8    20      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.84 ms | 1394 KiB | 13 Q