3v4l.org

run code in 200+ PHP versions simultaneously
<?php $time = microtime(true); for ($i = 0; $i <= 10000000; $i++) { chr(0); } $time2 = microtime(true); echo $time2 - $time; echo "\r\n"; class FOO { const BAR = ''; public function stats() { $time = microtime(true); for ($i = 0; $i <= 10000000; $i++) { self::BAR; } $time2 = microtime(true); echo $time2 - $time; } } $foo = new FOO(); $foo->stats();

Abusive script

This script was stopped while abusing our resources

Output for 7.2.4
0.1221969127655 0.14061498641968
Output for 7.2.3
0.12567400932312 0.12253189086914
Output for 7.2.2
0.18492484092712 0.13530397415161
Output for 7.2.1
0.14479899406433 0.12083101272583
Output for 7.2.0
0.11625909805298 0.12778997421265
Output for 7.1.16
0.12308716773987 0.13345718383789
Output for 7.1.15
0.19183897972107 0.16018581390381
Output for 7.1.14
0.1272120475769 0.16097402572632
Output for 7.1.13
0.12288999557495 0.12369608879089
Output for 7.1.12
0.12937784194946 0.12967705726624
Output for 7.1.11
0.129469871521 0.14006686210632
Output for 7.1.10
0.12418413162231 0.12461090087891
Output for 7.1.9
0.1228768825531 0.12376403808594
Output for 7.1.8
0.2349579334259 0.22806119918823
Output for 7.1.7
0.21484589576721 0.221843957901
Output for 7.1.6
0.23949813842773 0.22790789604187
Output for 7.1.5
0.12897300720215 0.14271402359009
Output for 7.1.4
0.12701511383057 0.11969995498657
Output for 7.1.3
0.12171316146851 0.11762404441833
Output for 7.1.2
0.12434005737305 0.12340307235718
Output for 7.1.1
0.11873197555542 0.11681985855103
Output for 7.1.0
0.13541698455811 0.15205502510071
Output for 5.6.30
1.6650412082672
Process exited with code 137.
Output for 5.6.29
1.7488641738892
Process exited with code 137.
Output for 5.6.28
1.5074610710144
Process exited with code 137.
Output for 5.6.27
1.6066579818726
Process exited with code 137.
Output for 5.6.26
1.6161639690399 0.7803270816803
Output for 5.6.25
1.4375519752502 0.79874491691589
Output for 5.6.24
1.4794290065765 0.79152297973633
Output for 5.6.23
1.5135321617126 0.88653111457825
Output for 5.6.22
1.5814130306244 0.78232002258301
Output for 5.6.21
1.59343791008 0.76699113845825
Output for 5.6.20
1.5569920539856 0.81026911735535
Output for 5.6.19
1.4498200416565 0.86118197441101
Output for 5.6.18
1.5959620475769 0.77260684967041
Output for 5.6.17
1.5138380527496 0.76984596252441
Output for 5.6.16
1.4522848129272 0.7609920501709
Output for 5.6.15
1.5345768928528
Process exited with code 137.