[ create a new paste ] login | about

Link: http://codepad.org/WPkjTxnn    [ raw code | output | fork ]

cbuckley - PHP, pasted on Jan 10:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

echo phpversion() . "\n";

try {
  echo "start\n";
  throw new Exception("test");

  for ($index=0; $index < 1; $index++) {
    echo "loop";
  }
} catch ( Exception $e ){
  echo "caught $e";
}


Output:
1
2
3
4
5
5.2.5
start
caught exception 'Exception' with message 'test' in /t.php:7
Stack trace:
#0 {main}


Create a new paste based on this one


Comments: