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'.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 = 4
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 2
Branch analysis from position: 6
Branch analysis from position: 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 = 79) Position 1 = -2
filename:       /in/7aaas
function name:  (null)
number of ops:  13
compiled vars:  !0 = $i, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->4
   12     2    >   ECHO                                                     'start%0A'
   11     3        PRE_INC                                                  !0
          4    >   IS_SMALLER                                               !0, 10
          5      > JMPNZ                                                    ~4, ->2
          6    > > JMP                                                      ->12
   15     7  E > > CATCH                                       last         'Exception'
   16     8    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          9        DO_FCALL                                      0  $5      
         10        ECHO                                                     $5
   17    11      > EXIT                                                     1
   18    12    > > RETURN                                                   1

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