3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Tag {}; $setTags = []; function setTags(array $tags) use (&$setTags) { array_map( function (Tag $tag) { $setTags[] = $tag; }, $tags ); } var_dump($setTags); setTags( [ new Tag(), new Tag(), new Tag(), new Tag(), ] ); var_dump($setTags);

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.120.0370.05020.20
7.0.110.0400.06020.11
7.0.100.0230.07020.29
7.0.90.0300.06020.29
7.0.80.0300.05320.36
7.0.70.0270.05720.36
7.0.60.0230.07020.23
7.0.50.0370.05720.12
7.0.40.0370.05020.21
7.0.30.0300.05320.25
7.0.20.0400.04320.15
7.0.10.0300.06020.19
7.0.00.0270.05720.28
5.6.260.0270.03720.90
5.6.250.0100.05321.11
5.6.240.0070.05720.89
5.6.230.0100.05720.75
5.6.220.0130.05021.02
5.6.210.0030.06020.96
5.6.200.0100.06320.84
5.6.190.0100.06021.00
5.6.180.0000.06720.81
5.6.170.0070.05720.87
5.6.160.0130.05720.97
5.6.150.0070.06020.81
5.6.140.0200.05020.82
5.6.130.0070.06021.07
5.6.120.0170.05320.75
5.6.110.0200.05020.92
5.6.100.0200.05020.79
5.6.90.0070.06320.85
5.6.80.0130.05320.48
5.6.70.0070.05720.13
5.6.60.0070.06020.38
5.6.50.0070.06020.18
5.6.40.0170.04720.22
5.6.30.0070.06020.21
5.6.20.0030.06320.36
5.6.10.0100.05020.39
5.6.00.0100.05320.11

preferences:
144.12 ms | 1394 KiB | 7 Q