3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UberException extends Exception { public function __construct() { $refTrace = new ReflectionProperty('Exception', 'trace'); $refTrace->setAccessible(true); $refTrace->setValue($this, array(array('file' => 'data.php', 'line' => 20, 'function' => 'super', 'args' => array())); } } function test() { throw new UberException(); } try { test(); } catch (Exception $e) { var_dump($e->getTrace()); throw $e; }

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)
5.4.170.0240.05512.39
5.4.160.0160.05212.39
5.4.150.0150.04312.38
5.4.140.0180.04012.08
5.4.130.0130.04512.05
5.4.120.0130.04412.02
5.4.110.0170.04712.02
5.4.100.0110.04312.02
5.4.90.0130.03912.02
5.4.80.0160.04712.02
5.4.70.0110.04012.01
5.4.60.0130.03912.01
5.4.50.0110.04112.01
5.4.40.0120.04112.00
5.4.30.0130.04112.00
5.4.20.0140.04911.99
5.4.10.0160.04712.00
5.4.00.0120.04111.49
5.3.270.0140.04212.72
5.3.260.0150.04212.72
5.3.250.0110.04212.72
5.3.240.0180.04812.72
5.3.230.0160.03912.71
5.3.220.0130.04112.68
5.3.210.0120.04312.68
5.3.200.0200.05512.68
5.3.190.0150.04112.67
5.3.180.0130.04612.67
5.3.170.0110.04412.67
5.3.160.0120.04312.67
5.3.150.0130.05312.67
5.3.140.0150.04112.66
5.3.130.0160.05212.66
5.3.120.0190.04812.66
5.3.110.0130.04312.66
5.3.100.0110.04512.12
5.3.90.0120.04112.10
5.3.80.0220.05212.09
5.3.70.0150.04012.09
5.3.60.0120.04612.07
5.3.50.0160.03912.02
5.3.40.0120.04112.02
5.3.30.0130.05011.98
5.3.20.0120.04011.76
5.3.10.0120.03911.73
5.3.00.0120.04011.71

preferences:
135.19 ms | 1394 KiB | 7 Q