3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(0); ini_set('display_errors', '0'); set_exception_handler(function($e) { die(get_class($e)); }); function foo(int $x): void { var_dump($x); exit; } foo(3 . 7 + 5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Wnsf
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 '0'
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'set_exception_handler'
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2Wnsf%3A6%240'
    8     9        SEND_VAL                                                 ~2
         10        DO_ICALL                                                 
   16    11        INIT_FCALL                                               'foo'
         12        SEND_VAL                                                 '312'
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F2Wnsf%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/2Wnsf
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        GET_CLASS                                        ~1      !0
          2      > EXIT                                                     ~1
    8     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F2Wnsf%3A6%240

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/2Wnsf
function name:  foo
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   13     4      > EXIT                                                     
   14     5*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.47 ms | 1399 KiB | 22 Q