3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function tester(array $test) { echo "array"; } } $t = new test(); try { $t->tester("omg"); } catch (Exception $e) { echo $e->getMessage(); } $t->tester(array("omg"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nCEIR
function name:  (null)
number of ops:  15
compiled vars:  !0 = $t, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        INIT_METHOD_CALL                                         !0, 'tester'
          4        SEND_VAL_EX                                              'omg'
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->11
   11     7  E > > CATCH                                       last         'Exception'
   12     8    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          9        DO_FCALL                                      0  $6      
         10        ECHO                                                     $6
   14    11    >   INIT_METHOD_CALL                                         !0, 'tester'
         12        SEND_VAL_EX                                              <array>
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

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

End of function tester

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1394 KiB | 13 Q