3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new class extends stdClass { }; var_dump(get_class($obj) . " some other string", strlen(get_class($obj)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0EdFe
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <unknown> 'stdclass'
          1        NEW                                              $2      $1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'var_dump'
          5        GET_CLASS                                        ~5      !0
          6        CONCAT                                           ~6      ~5, '+some+other+string'
          7        SEND_VAL                                                 ~6
          8        GET_CLASS                                        ~7      !0
          9        STRLEN                                           ~8      ~7
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class stdClass@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.79 ms | 1398 KiB | 15 Q