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'))){ printf("%s::%s\n", $class, $method); } } }
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/fOYFl
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
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_declared_classes'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    4     3      > FE_RESET_R                                       $6      !0, ->21
          4    > > FE_FETCH_R                                               $6, !1, ->21
    5     5    >   INIT_FCALL                                               'get_class_methods'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
    6     9      > FE_RESET_R                                       $9      !2, ->19
         10    > > FE_FETCH_R                                               $9, !3, ->19
    7    11    >   IN_ARRAY                                                 !3, <array>
         12      > JMPZ                                                     ~10, ->18
    8    13    >   INIT_FCALL                                               'printf'
         14        SEND_VAL                                                 '%25s%3A%3A%25s%0A'
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
    6    18    > > JMP                                                      ->10
         19    >   FE_FREE                                                  $9
    4    20      > JMP                                                      ->4
         21    >   FE_FREE                                                  $6
   11    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.83 ms | 1396 KiB | 19 Q