3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $t = "yolo"; } $f = new Foo(); $f = (array) $f; var_dump(array_pop($f)); $s = new class { private $t = "my name"; }; $v = (array)$s; var_dump(array_pop($v));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CrJ6I
function name:  (null)
number of ops:  24
compiled vars:  !0 = $f, !1 = $s, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    8     3        CAST                                          7  ~6      !0
          4        ASSIGN                                                   !0, ~6
   10     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_pop'
          7        SEND_REF                                                 !0
          8        DO_ICALL                                         $8      
          9        SEND_VAR                                                 $8
         10        DO_ICALL                                                 
   12    11        DECLARE_ANON_CLASS                               <unknown> 
         12        NEW                                              $11     $10
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $11
   15    15        CAST                                          7  ~14     !1
         16        ASSIGN                                                   !2, ~14
   16    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'array_pop'
         19        SEND_REF                                                 !2
         20        DO_ICALL                                         $16     
         21        SEND_VAR                                                 $16
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class Foo: [no user functions]
Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.44 ms | 1395 KiB | 17 Q