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++){ echo 'start'; $test->test(); } } catch (Exception $e) { echo $e->getMessage(); exit(1); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
Branch analysis from position: 5
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/2cnW5
function name:  (null)
number of ops:  18
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                                                      ->9
   12     5    >   ECHO                                                     'start'
   13     6        INIT_METHOD_CALL                                         !0, 'test'
          7        DO_FCALL                                      0          
   11     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 10
         10      > JMPNZ                                                    ~9, ->5
         11    > > JMP                                                      ->17
   15    12  E > > CATCH                                       last         'Exception'
   16    13    >   INIT_METHOD_CALL                                         !2, 'getMessage'
         14        DO_FCALL                                      0  $10     
         15        ECHO                                                     $10
   17    16      > EXIT                                                     1
   18    17    > > RETURN                                                   1

Class Test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/2cnW5
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:
150.52 ms | 1386 KiB | 13 Q