3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $var1; public $var2; public static function __set_state($an_array) // As of PHP 5.1.0 { return null; } } $a = new A; $a->var1 = 5; $a->var2 = 'foo'; var_export($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rTKOI
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        ASSIGN_OBJ                                               !0, 'var1'
          4        OP_DATA                                                  5
   16     5        ASSIGN_OBJ                                               !0, 'var2'
          6        OP_DATA                                                  'foo'
   18     7        INIT_FCALL                                               'var_export'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class A:
Function __set_state:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rTKOI
function name:  __set_state
number of ops:  3
compiled vars:  !0 = $an_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
   10     1      > RETURN                                                   null
   11     2*     > RETURN                                                   null

End of function __set_state

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.6 ms | 1386 KiB | 15 Q