3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classes = get_declared_classes(); foreach($classes as $class) { $methods = get_class_methods($class); foreach($methods as $method) { if (in_array($method, array('__construct', '__destruct', '__call', '__callStatic', '__get', '__set', '__isset', '__unset', '__sleep', '__wakeup', '__toString', '__invoke', '__set_state', '__clone'))) { print "$class::$method\n"; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 21
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 21
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 18
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/IpRpN
function name:  (null)
number of ops:  23
compiled vars:  !0 = $classes, !1 = $class, !2 = $methods, !3 = $method
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'get_declared_classes'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    3     3      > FE_RESET_R                                       $6      !0, ->21
          4    > > FE_FETCH_R                                               $6, !1, ->21
    4     5    >   INIT_FCALL                                               'get_class_methods'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
    5     9      > FE_RESET_R                                       $9      !2, ->19
         10    > > FE_FETCH_R                                               $9, !3, ->19
    6    11    >   IN_ARRAY                                                 !3, <array>
         12      > JMPZ                                                     ~10, ->18
    7    13    >   ROPE_INIT                                     4  ~12     !1
         14        ROPE_ADD                                      1  ~12     ~12, '%3A%3A'
         15        ROPE_ADD                                      2  ~12     ~12, !3
         16        ROPE_END                                      3  ~11     ~12, '%0A'
         17        ECHO                                                     ~11
    5    18    > > JMP                                                      ->10
         19    >   FE_FREE                                                  $9
    3    20      > JMP                                                      ->4
         21    >   FE_FREE                                                  $6
   10    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.55 ms | 1388 KiB | 17 Q