3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){} const CONFIG = [ 'pdo' => new PDO() ]; /* define('CONFIG', [ 'pdo' => new PDO() ]); */ var_dump(CONFIG['pdo']);

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.00.0070.06020.06
5.6.160.0100.03720.57
5.6.150.0070.08718.15
5.6.140.0000.06018.20
5.6.130.0030.08018.15
5.6.120.0100.08321.05
5.6.110.0170.07320.96
5.6.100.0030.08320.98
5.6.90.0030.07321.00
5.6.80.0070.07720.54
5.5.300.0070.06017.92
5.5.290.0030.04717.98
5.5.280.0000.09320.62
5.5.270.0000.04320.80
5.5.260.0030.04020.96
5.5.250.0130.08020.61
5.5.240.3900.04020.26

preferences:
145.78 ms | 1394 KiB | 7 Q