3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a = ''; protected $b = ''; private $c = ''; } class B { public $a = ''; protected $b = ''; private $c = ''; } var_dump(md5(serialize(new A())) === md5(serialize(new B())));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/doSL1
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'md5'
          2        INIT_FCALL                                               'serialize'
          3        NEW                                              $0      'A'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        INIT_FCALL                                               'md5'
         10        INIT_FCALL                                               'serialize'
         11        NEW                                              $4      'B'
         12        DO_FCALL                                      0          
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                         $7      
         17        IS_IDENTICAL                                     ~8      $3, $7
         18        SEND_VAL                                                 ~8
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.83 ms | 1386 KiB | 19 Q