3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ public function gettest(){ 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'.PHP_EOL; //$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 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
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 = 9, Position 2 = 5
Branch analysis from position: 9
Branch analysis from position: 5
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 = 79) Position 1 = -2
filename:       /in/IpMMI
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                                                      ->7
   12     5    >   ECHO                                                     'start%0A'
   11     6        PRE_INC                                                  !1
          7    >   IS_SMALLER                                               !1, 10
          8      > JMPNZ                                                    ~8, ->5
          9    > > JMP                                                      ->15
   15    10  E > > CATCH                                       last         'Exception'
   16    11    >   INIT_METHOD_CALL                                         !2, 'getMessage'
         12        DO_FCALL                                      0  $9      
         13        ECHO                                                     $9
   17    14      > EXIT                                                     1
   18    15    > > RETURN                                                   1

Class Test:
Function gettest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/IpMMI
function name:  gettest
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 gettest

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.17 ms | 1395 KiB | 13 Q