3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'Something'; $b = 'Other thing'; $startSingle = microtime(); for ($i = 0; $i < 10000; $i++) $var = 'I am a single quote string ',$a,' & ',$b; $endSingle = microtime(); $timeSingle = $endSingle - $startSingle; echo 'No math took : ',$timeSingle,'ms';<?php

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.4.270.0070.07019.10
5.4.260.0130.07318.90
5.4.250.0170.05718.78
5.4.240.0070.06018.99
5.4.230.0130.06318.95
5.4.220.0030.05719.11
5.4.210.0030.06018.78
5.4.200.0000.06018.64
5.4.190.0170.05318.79
5.4.180.0130.05319.04
5.4.170.0030.07018.95
5.4.160.0230.04718.88
5.4.150.0000.06019.08
5.4.140.0070.05716.43
5.4.130.0030.07016.50
5.4.120.0130.05016.51
5.4.110.0130.05316.49
5.4.100.0070.06716.41
5.4.90.0000.06316.54
5.4.80.0100.05716.38
5.4.70.0230.05716.52
5.4.60.0070.06016.49
5.4.50.0170.06016.59
5.4.40.0030.05716.45
5.4.30.0100.06716.44
5.4.20.0070.05016.36
5.4.10.0200.05716.63
5.4.00.0130.05715.80
5.3.280.0130.04714.37
5.3.270.0000.06014.31
5.3.260.0130.04714.62
5.3.250.0130.04714.39
5.3.240.0000.07314.61
5.3.230.0100.05014.52
5.3.220.0170.04714.55
5.3.210.0300.06014.34
5.3.200.0030.05314.44
5.3.190.0100.05014.72
5.3.180.0100.05014.57
5.3.170.0030.07714.58
5.3.160.0130.04314.34
5.3.150.0100.06714.43
5.3.140.0070.05014.44
5.3.130.0070.05314.56
5.3.120.0230.05714.59
5.3.110.0100.06314.64
5.3.100.0070.05013.88
5.3.90.0100.05013.79
5.3.80.0130.06713.96
5.3.70.0100.05313.91
5.3.60.0030.06714.02
5.3.50.0000.07313.65
5.3.40.0070.07313.96
5.3.30.0170.07013.78
5.3.20.0100.05313.71
5.3.10.0070.06713.74
5.3.00.0070.05013.34
5.2.170.0000.05011.14
5.2.160.0100.04011.15
5.2.150.0070.04310.98
5.2.140.0030.05311.14
5.2.130.0130.03311.02
5.2.120.0130.05311.02
5.2.110.0030.05710.98
5.2.100.0100.05011.02
5.2.90.0030.05311.09
5.2.80.0170.05711.01
5.2.70.0130.04311.12
5.2.60.0070.04311.05
5.2.50.0100.05310.94
5.2.40.0030.04311.00
5.2.30.0070.04310.88
5.2.20.0200.02710.98
5.2.10.0170.03710.93
5.2.00.0100.03710.48
5.1.60.0030.03710.23
5.1.50.0030.0439.92
5.1.40.0030.0439.94
5.1.30.0130.04710.41
5.1.20.0070.03710.41
5.1.10.0070.04710.13
5.1.00.0100.0479.84
5.0.50.0100.0278.43
5.0.40.0130.0308.45
5.0.30.0000.0478.18
5.0.20.0100.0308.28
5.0.10.0070.0238.13
5.0.00.0100.0578.12
4.4.90.0070.0206.63
4.4.80.0030.0276.63
4.4.70.0030.0306.63
4.4.60.0100.0206.63
4.4.50.0030.0206.63
4.4.40.0030.0336.63
4.4.30.0070.0276.63
4.4.20.0000.0306.63
4.4.10.0030.0206.63
4.4.00.0000.0376.63
4.3.110.0100.0236.63
4.3.100.0030.0276.63
4.3.90.0070.0206.63
4.3.80.0100.0276.63
4.3.70.0030.0206.63
4.3.60.0100.0206.63
4.3.50.0070.0276.63
4.3.40.0000.0376.63
4.3.30.0030.0206.63
4.3.20.0030.0236.63
4.3.10.0000.0306.63
4.3.00.0100.0176.71

preferences:
147.17 ms | 1386 KiB | 7 Q