3v4l.org

run code in 300+ PHP versions simultaneously
<?php $anon = new class extends Exception { public function __invoke($a, $b) { echo $a.$b.PHP_EOL; } }; $anon('Hello', 'World');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EcdDa
function name:  (null)
number of ops:  9
compiled vars:  !0 = $anon
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <unknown> 'exception'
          1        NEW                                              $2      $1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    9     4        INIT_DYNAMIC_CALL                                        !0
          5        SEND_VAL_EX                                              'Hello'
          6        SEND_VAL_EX                                              'World'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Exception@anonymous:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EcdDa
function name:  __invoke
number of ops:  6
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        CONCAT                                           ~2      !0, !1
          3        CONCAT                                           ~3      ~2, '%0A'
          4        ECHO                                                     ~3
    6     5      > RETURN                                                   null

End of function __invoke

End of class Exception@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.3 ms | 1385 KiB | 13 Q