3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo {} function f0($foo) {} function f1(Foo $foo) {} function f2(Foo $foo = null) {} $times = array(); for ($j = 0; $j < 10; $j++) { $start = microtime(true); for ($i = 0; $i < 1000000; $i++) { f0(new Foo()); } $times[] = microtime(true) - $start; } var_dump(array_sum($times) / 10); $times = array(); for ($j = 0; $j < 10; $j++) { $start = microtime(true); for ($i = 0; $i < 1000000; $i++) { f1(new Foo()); } $times[] = microtime(true) - $start; } var_dump(array_sum($times) / 10); $times = array(); for ($j = 0; $j < 10; $j++) { $start = microtime(true); for ($i = 0; $i < 1000000; $i++) { f2(new Foo()); } $times[] = microtime(true) - $start; } var_dump(array_sum($times) / 10);

Abusive script

This script was stopped while abusing our resources

Output for 7.0.12
float(-0.017972493171692) float(0.073869729042053) float(0.1660010099411)
Output for 7.0.11
float(-0.068784284591675) float(0.23395776748657)
Process exited with code 137.
Output for 7.0.10
float(0.081397080421448) float(0.074376797676086) float(0.074886989593506)
Output for 7.0.9
float(-0.050740909576416) float(0.21448147296906)
Process exited with code 137.
Output for 7.0.8
float(0.013670802116394) float(0.07148380279541) float(0.1276695728302)
Output for 7.0.7
float(-0.045995807647705) float(0.18873236179352) float(0.071794319152832)
Output for 7.0.6
float(0.041447901725769) float(0.072420787811279) float(0.075175619125366)
Output for 7.0.5
float(-0.03224630355835) float(0.17305660247803) float(0.071196126937866)
Output for 7.0.4
float(0.069046187400818) float(0.07027952671051) float(0.07237651348114)
Output for 7.0.3
float(-0.025877070426941) float(0.1680034160614) float(0.072832775115967)
Output for 7.0.2
float(0.071987080574036) float(0.073322105407715) float(0.074701499938965)
Output for 7.0.1
float(-0.041635322570801) float(0.086189889907837) float(0.18485808372498)
Output for 7.0.0
float(0.044628024101257) float(0.0707852602005) float(0.095264601707458)
Output for 5.6.26
float(0.072922420501709)
Process exited with code 137.
Output for 5.6.25
float(0.12886781692505)
Process exited with code 137.
Output for 5.6.24
float(0.029826831817627)
Process exited with code 137.
Output for 5.6.23
float(0.13795251846313)
Process exited with code 137.
Output for 5.6.22
float(0.10811319351196)
Process exited with code 137.
Output for 5.6.21
float(0.13678963184357)
Process exited with code 137.
Output for 5.6.20
float(0.163197016716)
Process exited with code 137.
Output for 5.6.19
float(0.13641228675842)
Process exited with code 137.
Output for 5.6.18
float(0.096501803398132)
Process exited with code 137.
Output for 5.6.17
float(0.12963800430298)
Process exited with code 137.
Output for 5.6.16
float(0.13786330223083)
Process exited with code 137.
Output for 5.6.15
float(0.077075171470642)
Process exited with code 137.
Output for 5.6.14
float(0.15260775089264)
Process exited with code 137.
Output for 5.6.13
float(0.068536019325256)
Process exited with code 137.
Output for 5.6.12
float(0.15361001491547)
Process exited with code 137.
Output for 5.6.11
float(0.051416444778442)
Process exited with code 137.
Output for 5.6.10
float(0.09164674282074)
Process exited with code 137.
Output for 5.6.9
float(0.11583642959595)
Process exited with code 137.
Output for 5.6.8
float(0.13553252220154)
Process exited with code 137.
Output for 5.6.7
float(0.16266939640045)
Process exited with code 137.
Output for 5.6.6
float(0.13914523124695)
Process exited with code 137.
Output for 5.6.5
float(0.1053215265274)
Process exited with code 137.
Output for 5.6.4
float(0.068748211860657)
Process exited with code 137.
Output for 5.6.3
float(0.13711588382721)
Process exited with code 137.
Output for 5.6.2
float(0.13633027076721)
Process exited with code 137.
Output for 5.6.1
float(0.14350364208221)
Process exited with code 137.
Output for 5.6.0
float(0.090322542190552)
Process exited with code 137.
Output for 5.5.38
float(0.11625027656555)
Process exited with code 137.
Output for 5.5.37
float(0.14182171821594)
Process exited with code 137.
Output for 5.5.36
float(0.083904337882996)
Process exited with code 137.
Output for 5.5.35
float(0.16006872653961)
Process exited with code 137.
Output for 5.5.34
float(0.15403349399567)
Process exited with code 137.
Output for 5.5.33
float(0.14958086013794)
Process exited with code 137.
Output for 5.5.32
float(0.15318689346313)
Process exited with code 137.
Output for 5.5.31
float(0.14745709896088)
Process exited with code 137.
Output for 5.5.30
float(0.14081335067749)
Process exited with code 137.
Output for 5.5.29
float(0.17198774814606)
Process exited with code 137.
Output for 5.5.28
float(0.1075145483017)
Process exited with code 137.
Output for 5.5.27
float(0.14554407596588)
Process exited with code 137.
Output for 5.5.26
float(0.14823169708252)
Process exited with code 137.
Output for 5.5.25
float(0.16187784671783)
Process exited with code 137.
Output for 5.5.24
float(0.14529900550842)
Process exited with code 137.
Output for 5.5.23
float(0.11357967853546)
Process exited with code 137.
Output for 5.5.22
float(0.05272331237793)
Process exited with code 137.
Output for 5.5.21
float(0.14991474151611)
Process exited with code 137.
Output for 5.5.20
float(0.14720981121063)
Process exited with code 137.
Output for 5.5.19
float(0.1345358133316)
Process exited with code 137.
Output for 5.5.18
float(0.096460819244385)
Process exited with code 137.
Output for 5.5.16
float(0.065485811233521)
Process exited with code 137.
Output for 5.5.15
float(0.1233717918396)
Process exited with code 137.
Output for 5.5.14
float(0.058314919471741)
Process exited with code 137.
Output for 5.5.13
float(0.14999918937683)
Process exited with code 137.
Output for 5.5.12
float(0.16070730686188)
Process exited with code 137.
Output for 5.5.11
float(0.14570627212524)
Process exited with code 137.
Output for 5.5.10
float(0.08910129070282)
Process exited with code 137.
Output for 5.5.9
float(0.12854301929474)
Process exited with code 137.
Output for 5.5.8
float(0.14852313995361)
Process exited with code 137.
Output for 5.5.7
float(0.074005937576294)
Process exited with code 137.
Output for 5.5.6
float(0.14670851230621)
Process exited with code 137.
Output for 5.5.5
float(0.076937484741211)
Process exited with code 137.
Output for 5.5.4
float(0.1271703004837)
Process exited with code 137.
Output for 5.5.3
float(0.13659706115723)
Process exited with code 137.
Output for 5.5.2
float(0.15172562599182)
Process exited with code 137.
Output for 5.5.1
float(0.14985795021057)
Process exited with code 137.
Output for 5.5.0
float(0.14789490699768)
Process exited with code 137.
Output for 5.4.45
float(0.054436826705933)
Process exited with code 137.
Output for 5.4.44
float(0.14574193954468)
Process exited with code 137.
Output for 5.4.43
float(0.14291610717773)
Process exited with code 137.
Output for 5.4.42
float(0.073159313201904)
Process exited with code 137.
Output for 5.4.41
float(0.14493169784546)
Process exited with code 137.
Output for 5.4.40
float(0.073091840744019)
Process exited with code 137.
Output for 5.4.39
float(0.1447208404541)
Process exited with code 137.
Output for 5.4.38
float(0.087646770477295)
Process exited with code 137.
Output for 5.4.37
float(0.14411919116974)
Process exited with code 137.
Output for 5.4.36
float(0.14747500419617)
Process exited with code 137.
Output for 5.4.35
float(0.10593025684357)
Process exited with code 137.
Output for 5.4.34
float(0.062453532218933)
Process exited with code 137.
Output for 5.4.32
float(0.14528441429138)
Process exited with code 137.
Output for 5.4.31
float(0.14576432704926)
Process exited with code 137.
Output for 5.4.30
float(0.1434506893158)
Process exited with code 137.
Output for 5.4.29
float(0.074837040901184)
Process exited with code 137.
Output for 5.4.28
float(0.12287600040436)
Process exited with code 137.
Output for 5.4.27
float(0.16762173175812)
Process exited with code 137.
Output for 5.4.26
float(0.14337272644043)
Process exited with code 137.
Output for 5.4.25
float(0.14443473815918)
Process exited with code 137.
Output for 5.4.24
float(0.068409037590027)
Process exited with code 137.
Output for 5.4.23
float(0.1232843875885)
Process exited with code 137.
Output for 5.4.22
float(0.14339547157288)
Process exited with code 137.
Output for 5.4.21
float(0.15782220363617)
Process exited with code 137.
Output for 5.4.20
float(0.21123561859131)
Process exited with code 137.
Output for 5.4.19
float(0.04480721950531)
Process exited with code 137.
Output for 5.4.18
float(0.05976459980011)
Process exited with code 137.
Output for 5.4.17
float(0.051272892951965)
Process exited with code 137.
Output for 5.4.16
float(0.14505717754364)
Process exited with code 137.
Output for 5.4.15
float(0.094672513008118)
Process exited with code 137.
Output for 5.4.14
float(0.14479632377625)
Process exited with code 137.
Output for 5.4.13
float(0.13945927619934)
Process exited with code 137.
Output for 5.4.12
float(0.15755181312561)
Process exited with code 137.
Output for 5.4.11
float(0.14765653610229)
Process exited with code 137.
Output for 5.4.10
float(0.061927533149719)
Process exited with code 137.
Output for 5.4.9
float(0.1054566860199)
Process exited with code 137.
Output for 5.4.8
float(0.12299749851227)
Process exited with code 137.
Output for 5.4.7
float(0.12070808410645)
Process exited with code 137.
Output for 5.4.6
float(0.14512619972229)
Process exited with code 137.
Output for 5.4.5
float(0.12844214439392)
Process exited with code 137.
Output for 5.4.4
float(0.13678534030914)
Process exited with code 137.
Output for 5.4.3
float(0.14632992744446)
Process exited with code 137.
Output for 5.4.2
float(0.096104693412781)
Process exited with code 137.
Output for 5.4.1
float(0.06223738193512)
Process exited with code 137.
Output for 5.4.0
float(0.13609352111816)
Process exited with code 137.
Output for 5.3.29
float(0.18143427371979)
Process exited with code 137.
Output for 5.3.28
float(0.21467621326447)
Process exited with code 137.
Output for 5.3.27
float(0.21559047698975)
Process exited with code 137.
Output for 5.0.0 - 5.1.2, 5.1.4 - 5.2.17, 5.3.10, 5.3.13, 5.3.15, 5.3.21, 5.3.24, 5.3.26

Process exited with code 137.
Output for 5.3.25
float(0.21311140060425)
Process exited with code 137.
Output for 5.3.23
float(0.21851451396942)
Process exited with code 137.
Output for 5.3.22
float(0.22241632938385)
Process exited with code 137.
Output for 5.3.20
float(0.22256898880005)
Process exited with code 137.
Output for 5.3.19
float(0.22117083072662)
Process exited with code 137.
Output for 5.3.18
float(0.21959917545319)
Process exited with code 137.
Output for 5.3.17
float(0.22136464118958)
Process exited with code 137.
Output for 5.3.16
float(0.17014310359955)
Process exited with code 137.
Output for 5.3.14
float(0.22247126102448)
Process exited with code 137.
Output for 5.3.12
float(0.23954420089722)
Process exited with code 137.
Output for 5.3.11
float(0.20185928344727)
Process exited with code 137.
Output for 5.3.9
float(0.23960154056549)
Process exited with code 137.
Output for 5.3.8
float(0.22208347320557)
Process exited with code 137.
Output for 5.3.7
float(0.22298698425293)
Process exited with code 137.
Output for 5.3.6
float(0.2221657037735)
Process exited with code 137.
Output for 5.3.5
float(0.23692944049835)
Process exited with code 137.
Output for 5.3.4
float(0.22374796867371)
Process exited with code 137.
Output for 5.3.3
float(0.22589101791382)
Process exited with code 137.
Output for 5.3.2
float(0.22599592208862)
Process exited with code 137.
Output for 5.3.1
float(0.20592441558838)
Process exited with code 137.
Output for 5.3.0
float(0.22393884658813)
Process exited with code 137.
Output for 5.1.3
float(0.17431840896606)
Process exited with code 137.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/SpBmi on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting ')' in /in/SpBmi on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/SpBmi on line 5
Process exited with code 255.