3v4l.org

run code in 500+ PHP versions simultaneously
<?php set_exception_handler(function($e) { echo $e->getMessage();} ); function foo(int $v) { echo $v; } foo('9999999999999999999999999999999');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sp1C4
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'set_exception_handler'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
    8     4        INIT_FCALL                                                   'foo'
          5        SEND_VAL                                                     '9999999999999999999999999999999'
          6        DO_FCALL                                          0          
          7      > 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/sp1C4
function name:  {closure:/in/sp1C4:2}
number of ops:  5
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
          1        INIT_METHOD_CALL                                             !0, 'getMessage'
          2        DO_FCALL                                          0  $1      
          3        ECHO                                                         $1
          4      > RETURN                                                       null

End of Dynamic Function 0

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sp1C4
function name:  foo
number of ops:  3
compiled vars:  !0 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
    5     1        ECHO                                                         !0
    6     2      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.34 ms | 3323 KiB | 15 Q