3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '0w95'; print "$x\n"; for ($i=0; $i<20; $i++){ $x++; $y = $x+1 print "$x next: $y\n"; }

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.0230.03720.06
7.0.10.0030.04320.25
7.0.00.0070.04320.18
5.6.170.0370.07020.39
5.6.160.0000.09320.52
5.6.150.0130.07018.19
5.6.140.0030.08318.18
5.6.130.0030.04718.27
5.6.120.0070.08321.01
5.6.110.0170.07321.13
5.6.100.0170.07721.00
5.6.90.0000.04321.00
5.6.80.0070.07320.43
5.5.310.0200.06720.34
5.5.300.0030.03717.94
5.5.290.0100.06718.03
5.5.280.0030.04020.76
5.5.270.0170.06720.96
5.5.260.0070.08320.87
5.5.250.0100.07020.70
5.5.240.0330.06020.25

preferences:
141.54 ms | 1394 KiB | 7 Q