3v4l.org

run code in 500+ PHP versions simultaneously
<?php function expect_an_exception(Exception $e){} function expect_a_string(string $string){} expect_an_exception(new Exception('Division by zero.')); expect_a_string("hello");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PDL1F
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                                   'expect_an_exception'
          1        NEW                                                  $0      'Exception'
          2        SEND_VAL_EX                                                  'Division+by+zero.'
          3        DO_FCALL                                          0          
          4        SEND_VAR                                                     $0
          5        DO_FCALL                                          0          
    6     6        INIT_FCALL                                                   'expect_a_string'
          7        SEND_VAL                                                     'hello'
          8        DO_FCALL                                          0          
          9      > RETURN                                                       1

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

End of function expect_an_exception

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

End of function expect_a_string

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.35 ms | 2573 KiB | 15 Q