3v4l.org

run code in 300+ PHP versions simultaneously
<?php $anonymous = new class(){}; echo get_class($anonymous).': now you see me...'; trigger_error( get_class($anonymous).' ...now you don\'t!', E_USER_ERROR );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0OTZ9
function name:  (null)
number of ops:  14
compiled vars:  !0 = $anonymous
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <unknown> 
          1        NEW                                              $2      $1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    5     4        GET_CLASS                                        ~5      !0
          5        CONCAT                                           ~6      ~5, '%3A+now+you+see+me...'
          6        ECHO                                                     ~6
    7     7        INIT_FCALL                                               'trigger_error'
    8     8        GET_CLASS                                        ~7      !0
          9        CONCAT                                           ~8      ~7, '+...now+you+don%27t%21'
         10        SEND_VAL                                                 ~8
    9    11        SEND_VAL                                                 256
    7    12        DO_ICALL                                                 
   10    13      > RETURN                                                   1

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.52 ms | 996 KiB | 14 Q