3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($x=1; $x<5; $x++) $t[]=$x2; return $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.0370.06720.18
7.0.10.0100.06720.18
7.0.00.0000.05720.22
5.6.170.0200.04020.52
5.6.160.0100.08320.33
5.6.150.0070.08018.21
5.6.140.0130.05318.11
5.6.130.0100.08718.09
5.6.120.0130.04721.01
5.6.110.0070.07021.08
5.6.100.0170.06720.95
5.6.90.0030.06320.98
5.6.80.0130.04320.40
5.5.310.0200.03720.13
5.5.300.0130.06717.98
5.5.290.0000.04317.95
5.5.280.0030.08320.96
5.5.270.0070.05720.79
5.5.260.0200.04720.76
5.5.250.0030.08720.79
5.5.240.0100.05720.14

preferences:
139.52 ms | 1394 KiB | 7 Q