3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($in) { $in['11'] = 22; } $t = array(); test(&$t); print_r($t); ?>

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.0330.07020.22
7.0.10.0070.08720.30
7.0.00.0100.06320.07
5.6.170.0270.05320.62
5.6.160.0100.05320.55
5.6.150.0100.03318.27
5.6.140.0130.03318.11
5.6.130.0070.04018.18
5.6.120.0070.04321.02
5.6.110.0070.04320.89
5.6.100.0100.08021.00
5.6.90.0130.06721.01
5.6.80.0030.04020.43
5.5.310.0170.08720.42
5.5.300.0070.04017.98
5.5.290.0070.08317.95
5.5.280.0070.05720.78
5.5.270.0000.04720.76
5.5.260.0100.07720.88
5.5.250.0130.08020.55
5.5.240.0230.07320.19

preferences:
139.8 ms | 1398 KiB | 7 Q