3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{} $foo = array('foo' => 'foo', 'bar'=>array('bar'), 'x'=>new stdclass()); $bar = new Foo; $fooMsg = var_export($foo, true); $barMsg = var_export($bar, true); var_dump($fooMsg,$barMsg);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QVSpE
function name:  (null)
number of ops:  24
compiled vars:  !0 = $foo, !1 = $bar, !2 = $fooMsg, !3 = $barMsg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~4      'foo', 'foo'
          1        ADD_ARRAY_ELEMENT                                ~4      <array>, 'bar'
          2        NEW                                              $5      'stdclass'
          3        DO_FCALL                                      0          
          4        ADD_ARRAY_ELEMENT                                ~4      $5, 'x'
          5        ASSIGN                                                   !0, ~4
    4     6        NEW                                              $8      'Foo'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $8
    6     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $11     
         13        ASSIGN                                                   !2, $11
    7    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $13     
         18        ASSIGN                                                   !3, $13
    9    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.4 ms | 1395 KiB | 17 Q