3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ public function test(){ throw new Exception('The api key must be a string and not empty'); } } try {$test = new Test(); for($i=0;$i<10;$i++){ $test->test(); } } catch (Exception $e) { exit($e->getMessage()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
Found catch point at position: 11
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/XXjCD
function name:  (null)
number of ops:  16
compiled vars:  !0 = $test, !1 = $i, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $3      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   11     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->8
   12     5    >   INIT_METHOD_CALL                                         !0, 'test'
          6        DO_FCALL                                      0          
   11     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 10
          9      > JMPNZ                                                    ~9, ->5
         10    > > JMP                                                      ->15
   14    11  E > > CATCH                                       last         'Exception'
   15    12    >   INIT_METHOD_CALL                                         !2, 'getMessage'
         13        DO_FCALL                                      0  $10     
         14      > EXIT                                                     $10
   16    15    > > RETURN                                                   1

Class Test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/XXjCD
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $0      'Exception'
          1        SEND_VAL_EX                                              'The+api+key+must+be+a+string+and+not+empty'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $0
    5     4*     > RETURN                                                   null

End of function test

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.32 ms | 1395 KiB | 13 Q