3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=65161 class SyntaxError { public function __construct() { } test.php: <?php function autoload($fullClass) { require_once('SyntaxError.php'); } spl_autoload_register('autoload'); function testGenerator() { yield new SyntaxError('param'); } foreach (testGenerator() as $i);

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.0260.06312.39
5.4.160.0130.04512.38
5.4.150.0160.04512.38
5.4.140.0180.05612.07
5.4.130.0130.04612.05
5.4.120.0140.04312.02
5.4.110.0200.06712.01
5.4.100.0160.05812.01
5.4.90.0150.04312.01
5.4.80.0140.05812.01
5.4.70.0140.04512.01
5.4.60.0160.04012.00
5.4.50.0140.04312.01
5.4.40.0160.04211.99
5.4.30.0120.04511.99
5.4.20.0200.03611.99
5.4.10.0210.06311.99
5.4.00.0150.04111.49
5.3.270.0160.04512.72
5.3.260.0150.04612.72
5.3.250.0190.05712.72
5.3.240.0140.04712.72
5.3.230.0320.06012.71
5.3.220.0140.04512.68
5.3.210.0160.04312.68
5.3.200.0150.04612.68
5.3.190.0150.04712.68
5.3.180.0190.04212.67
5.3.170.0150.06112.66
5.3.160.0170.05712.67
5.3.150.0200.04112.68
5.3.140.0150.04612.66
5.3.130.0220.05512.66
5.3.120.0190.04112.66
5.3.110.0150.04512.66
5.3.100.0140.04512.12
5.3.90.0160.04112.09
5.3.80.0160.07212.07
5.3.70.0130.04712.08
5.3.60.0160.04512.06
5.3.50.0320.06012.01
5.3.40.0180.04312.01
5.3.30.0170.05611.98
5.3.20.0180.04111.76
5.3.10.0180.04211.72
5.3.00.0150.04211.70

preferences:
135.95 ms | 1398 KiB | 7 Q