3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handler($e){ echo $e->getMessage(); } class AcessDeniedException extends Exception{ public function getMessage(){ parent::getMessage(); echo 'This is my exception'; } } set_exception_handler (handler); if(false){ throw new AcessDeniedException('Access DENIED!!!!!' , 1); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0400.06720.33
7.0.10.0030.05020.08
7.0.00.0100.05020.25
5.6.170.0330.06720.62
5.6.160.0100.08020.50
5.6.150.0070.07718.18
5.6.140.0070.03718.27
5.6.130.0000.04318.17
5.6.120.0200.07321.05
5.6.110.0170.07721.12
5.6.100.0030.04020.98
5.6.90.0070.05021.11
5.6.80.0100.07720.54
5.5.310.0170.05320.37
5.5.300.0030.07718.02
5.5.290.0070.08018.04
5.5.280.0070.04320.84
5.5.270.0130.06720.88
5.5.260.0070.08320.68
5.5.250.0100.06020.66
5.5.240.0130.04020.27

preferences:
133.18 ms | 1398 KiB | 7 Q