3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = str_repeat('x', 100); $string2 = str_repeat('y', 100); $string3 = str_repeat('z', 100); $mark = microtime(true); for($i = 0; $i < 2000; $i++) { ob_start(); for($j = 0; $j < 2000; $j++) print $string1 . $string2 . $string3; ob_get_clean(); } echo microtime(true) - $mark;

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)
5.6.100.9551.03315.42
5.6.90.9640.89615.58
5.6.81.0681.09915.59
5.6.71.0330.95915.18
5.6.60.9480.95715.43
5.6.50.9360.94915.37
5.6.40.9671.07515.16
5.6.31.1141.08615.30
5.6.20.9210.87115.07
5.6.11.0531.10215.43
5.6.00.9840.96715.46
5.5.260.9530.90412.25
5.5.250.9951.08312.03
5.5.240.9920.99712.09
5.5.231.0870.96512.15
5.5.220.9651.01312.12
5.5.210.9810.96812.18
5.5.200.9940.95012.07
5.5.190.7330.69412.00
5.5.181.1490.92012.03
5.5.170.9701.07015.25
5.5.161.0091.00912.14
5.5.150.9780.81412.08
5.5.141.0651.01012.16
5.5.130.9850.93611.95
5.5.121.0401.00211.98
5.5.111.0100.89112.35
5.5.101.0180.91011.92
5.5.91.0390.97212.16
5.5.81.0070.83212.04
5.5.70.9531.00811.87
5.5.60.9540.95011.89
5.5.51.0200.98312.04
5.5.41.0521.02511.94
5.5.30.9000.83311.97
5.5.20.9770.89812.02
5.5.10.9761.01111.66
5.5.01.0401.09911.85
5.4.420.9960.80412.16
5.4.410.9691.10012.04
5.4.401.0060.92512.04
5.4.391.0130.99411.86
5.4.380.9820.89711.81
5.4.371.0060.82511.81
5.4.360.9980.98512.08
5.4.350.9580.93912.02
5.4.341.0371.02212.04
5.4.331.0091.00212.06
5.4.320.9851.05511.65
5.4.310.8410.85012.00
5.4.301.1031.05911.83
5.4.291.0371.06212.02
5.4.281.0091.03911.71
5.4.271.1411.11311.51
5.4.261.0370.96511.84
5.4.250.9670.95711.62
5.4.241.0040.92811.83
5.4.230.9181.04311.79
5.4.221.1621.00411.62
5.4.211.1671.03811.38
5.4.200.9291.03711.75
5.4.191.0230.97611.73
5.4.180.8560.86411.84
5.4.171.0510.99611.92
5.4.160.9670.79911.75
5.4.151.0290.79712.01
5.4.141.0150.97111.82
5.4.131.1160.84012.13
5.4.121.0831.07211.81
5.4.111.0360.95512.07
5.4.101.0120.89311.83
5.4.90.9680.86911.69
5.4.81.1360.89212.01
5.4.70.9710.84012.19
5.4.61.0000.87212.09
5.4.50.6230.56312.03
5.4.40.6450.51012.14
5.4.30.5490.55012.08
5.4.20.8140.79112.10
5.4.11.0280.88811.74
5.4.00.9820.77111.89

preferences:
41.12 ms | 400 KiB | 5 Q