3v4l.org

run code in 500+ PHP versions simultaneously
<?php spl_autoload_register(function (string $class): void { echo "autoload: '$class'\n"; }); foreach (['', '\\', '\Foo', 'Foo'] as $callable) { echo "class_exists(\"$callable\")\n"; class_exists($callable); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/Qe3u4
function name:  (null)
number of ops:  15
compiled vars:  !0 = $callable
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                              ~1      [0]
    5     2        SEND_VAL                                                     ~1
    3     3        DO_ICALL                                                     
    7     4      > FE_RESET_R                                           $3      <array>, ->13
          5    > > FE_FETCH_R                                                   $3, !0, ->13
    8     6    >   ROPE_INIT                                         3  ~5      'class_exists%28%22'
          7        ROPE_ADD                                          1  ~5      ~5, !0
          8        ROPE_END                                          2  ~4      ~5, '%22%29%0A'
          9        ECHO                                                         ~4
    9    10        FRAMELESS_ICALL_1                class_exists        ~7      !0
         11        FREE                                                         ~7
    7    12      > JMP                                                          ->5
         13    >   FE_FREE                                                      $3
   10    14      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qe3u4
function name:  {closure:/in/Qe3u4:3}
number of ops:  6
compiled vars:  !0 = $class
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        ROPE_INIT                                         3  ~2      'autoload%3A+%27'
          2        ROPE_ADD                                          1  ~2      ~2, !0
          3        ROPE_END                                          2  ~1      ~2, '%27%0A'
          4        ECHO                                                         ~1
    5     5      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.72 ms | 484 KiB | 9 Q