3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(float $arg) { return $arg; } } $foo = new Foo(); try { var_dump($foo->bar(null)); } catch (Error $e) { echo '!!!' . $e->getMessage() . '!!!'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 10
Branch analysis from position: 10
2 jumps found. (Code = 107) Position 1 = 11, Position 2 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KgdpB
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'bar'
          5        SEND_VAL_EX                                              null
          6        DO_FCALL                                      0  $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                                 
          9      > JMP                                                      ->16
   14    10  E > > CATCH                                       last         'Error'
   15    11    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         12        DO_FCALL                                      0  $7      
         13        CONCAT                                           ~8      '%21%21%21', $7
         14        CONCAT                                           ~9      ~8, '%21%21%21'
         15        ECHO                                                     ~9
   16    16    > > RETURN                                                   1

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

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.18 ms | 1387 KiB | 15 Q