3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Environment { public function getDomainName() { return 'wut'; } } $max_loops = 100000; $environment = new Environment(); $goal = array( 'listarArticulosAdmin', 'editarArticuloAdmin', 'editarDatosEditorAdmin', 'menuAdmin', 'crearArticuloAdmin', 'borrarArticuloAdmin', 'borrarModeradorAdmin', 'editarMotivoArticuloAdmin', 'listarPagosAdmin', 'editarPagoAdmin', 'editarArticuloCategoriasAdmin', 'crearArticulosAdmin', 'confirmarFicheroPaypalAdmin', 'generarFicheroPaypalAdmin', 'verFicheroPaypalAdmin', ); $size = sizeof($goal)-1; $time = microtime(true); for($i = 0; $i < $max_loops; $i++) { $index = mt_rand(0, $size); if ($environment->getDomainName() != "res.hotelkey.com" && ($goal[$index] == "listarArticulosAdmin" || $goal[$index] == "editarArticuloAdmin" || $goal[$index] == "editarArticulosAdmin" || $goal[$index] == "listarEditoresAdmin" || $goal[$index] == "editarDatosEditorAdmin" || $goal[$index] == "menuAdmin" || $goal[$index] == "crearArticuloAdmin" || $goal[$index] == "borrarArticuloAdmin" || $goal[$index] == "borrarEditorAdmin" || $goal[$index] == "editarModeradorAdmin" || $goal[$index] == "borrarModeradorAdmin" || $goal[$index] == "editarMotivoArticuloAdmin" || $goal[$index] == "borrarMotivoArticuloAdmin" || $goal[$index] == "listarNotificacionesAdmin" || $goal[$index] == "listarPagosAdmin" || $goal[$index] == "editarPagoAdmin" || $goal[$index] == "editarArticuloCategoriasAdmin" || $goal[$index] == "actualizarEditoresAdmin" || $goal[$index] == "crearArticulosAdmin" || $goal[$index] == "confirmarFicheroPaypalAdmin" || $goal[$index] == "generarFicheroPaypalAdmin" || $goal[$index] == "listarFicherosPaypalAdmin" || $goal[$index] == "editarFicheroPaypalAdmin" || $goal[$index] == "verFicheroPaypalAdmin" ) ) { $access = false; } } $end = microtime(true); echo "Time elapsed: ".($end - $time)."\n";
Output for 7.1.0
Time elapsed: 0.0435471534729
Output for 7.0.14
Time elapsed: 0.061371088027954
Output for 7.0.7
Time elapsed: 0.037607908248901
Output for 7.0.6
Time elapsed: 0.044299125671387
Output for 7.0.5
Time elapsed: 0.054125785827637
Output for 7.0.4
Time elapsed: 0.057223081588745
Output for 7.0.3
Time elapsed: 0.03090500831604
Output for 7.0.2
Time elapsed: 0.031016111373901
Output for 7.0.1
Time elapsed: 0.051285982131958
Output for 7.0.0
Time elapsed: 0.031077861785889
Output for hhvm-3.12.0
Time elapsed: 0.10556292533875
Output for hhvm-3.10.0
Time elapsed: 0.067736864089966
Output for 5.6.28
Time elapsed: 0.13395404815674
Output for 5.6.22
Time elapsed: 0.092570066452026
Output for 5.6.21
Time elapsed: 0.08325982093811
Output for 5.6.20
Time elapsed: 0.10867309570312
Output for 5.6.19
Time elapsed: 0.093525886535645
Output for 5.6.18
Time elapsed: 0.097318887710571
Output for 5.6.17
Time elapsed: 0.090437889099121
Output for 5.6.16
Time elapsed: 0.079048871994019
Output for 5.6.15
Time elapsed: 0.079252004623413
Output for 5.6.14
Time elapsed: 0.077357053756714
Output for 5.6.13
Time elapsed: 0.078449964523315
Output for 5.6.12
Time elapsed: 0.07849383354187
Output for 5.6.11
Time elapsed: 0.10471987724304
Output for 5.6.10
Time elapsed: 0.077197790145874
Output for 5.6.9
Time elapsed: 0.089924097061157
Output for 5.6.8
Time elapsed: 0.1096408367157
Output for 5.6.7
Time elapsed: 0.11033511161804
Output for 5.6.6
Time elapsed: 0.10261988639832
Output for 5.6.5
Time elapsed: 0.11492896080017
Output for 5.6.4
Time elapsed: 0.12423801422119
Output for 5.6.3
Time elapsed: 0.09263801574707
Output for 5.6.2
Time elapsed: 0.11396503448486
Output for 5.6.1
Time elapsed: 0.098694086074829
Output for 5.6.0
Time elapsed: 0.11818909645081
Output for 5.5.36
Time elapsed: 0.096040964126587
Output for 5.5.35
Time elapsed: 0.079249858856201
Output for 5.5.34
Time elapsed: 0.077768802642822
Output for 5.5.33
Time elapsed: 0.1216459274292
Output for 5.5.32
Time elapsed: 0.11498212814331
Output for 5.5.31
Time elapsed: 0.079313039779663
Output for 5.5.30
Time elapsed: 0.082420110702515
Output for 5.5.29
Time elapsed: 0.078271865844727
Output for 5.5.28
Time elapsed: 0.12479996681213
Output for 5.5.27
Time elapsed: 0.10605692863464
Output for 5.5.26
Time elapsed: 0.11218500137329
Output for 5.5.25
Time elapsed: 0.11452007293701
Output for 5.5.24
Time elapsed: 0.12379217147827
Output for 5.5.23
Time elapsed: 0.10773110389709
Output for 5.5.22
Time elapsed: 0.096778869628906
Output for 5.5.21
Time elapsed: 0.09954309463501
Output for 5.5.20
Time elapsed: 0.11862182617188
Output for 5.5.19
Time elapsed: 0.12035202980042
Output for 5.5.18
Time elapsed: 0.11829996109009
Output for 5.5.16
Time elapsed: 0.10164093971252
Output for 5.5.15
Time elapsed: 0.099164009094238
Output for 5.5.14
Time elapsed: 0.12456607818604
Output for 5.5.13
Time elapsed: 0.12248396873474
Output for 5.5.12
Time elapsed: 0.11859393119812
Output for 5.5.11
Time elapsed: 0.12119293212891
Output for 5.5.10
Time elapsed: 0.11725306510925
Output for 5.5.9
Time elapsed: 0.11807513237
Output for 5.5.8
Time elapsed: 0.12024903297424
Output for 5.5.7
Time elapsed: 0.11849403381348
Output for 5.5.6
Time elapsed: 0.11045503616333
Output for 5.5.5
Time elapsed: 0.095161914825439
Output for 5.5.4
Time elapsed: 0.11775994300842
Output for 5.5.3
Time elapsed: 0.10892105102539
Output for 5.5.2
Time elapsed: 0.097465991973877
Output for 5.5.1
Time elapsed: 0.11222410202026
Output for 5.5.0
Time elapsed: 0.10610795021057
Output for 5.4.45
Time elapsed: 0.1028139591217
Output for 5.4.44
Time elapsed: 0.075830936431885
Output for 5.4.43
Time elapsed: 0.10303211212158
Output for 5.4.42
Time elapsed: 0.076436042785645
Output for 5.4.41
Time elapsed: 0.15546107292175
Output for 5.4.40
Time elapsed: 0.096729040145874
Output for 5.4.39
Time elapsed: 0.11666417121887
Output for 5.4.38
Time elapsed: 0.11690306663513
Output for 5.4.37
Time elapsed: 0.097044944763184
Output for 5.4.36
Time elapsed: 0.10672402381897
Output for 5.4.35
Time elapsed: 0.12225580215454
Output for 5.4.34
Time elapsed: 0.11197900772095
Output for 5.4.32
Time elapsed: 0.12101793289185
Output for 5.4.31
Time elapsed: 0.10691094398499
Output for 5.4.30
Time elapsed: 0.11222004890442
Output for 5.4.29
Time elapsed: 0.11935806274414
Output for 5.4.28
Time elapsed: 0.11810898780823
Output for 5.4.27
Time elapsed: 0.11638808250427
Output for 5.4.26
Time elapsed: 0.10725593566895
Output for 5.4.25
Time elapsed: 0.1044020652771
Output for 5.4.24
Time elapsed: 0.10903811454773
Output for 5.4.23
Time elapsed: 0.12136888504028
Output for 5.4.22
Time elapsed: 0.11821103096008
Output for 5.4.21
Time elapsed: 0.11845088005066
Output for 5.4.20
Time elapsed: 0.11256694793701
Output for 5.4.19
Time elapsed: 0.11910820007324
Output for 5.4.18
Time elapsed: 0.11223602294922
Output for 5.4.17
Time elapsed: 0.12086606025696
Output for 5.4.16
Time elapsed: 0.1119909286499
Output for 5.4.15
Time elapsed: 0.09300708770752
Output for 5.4.14
Time elapsed: 0.14402318000793
Output for 5.4.13
Time elapsed: 0.11001300811768
Output for 5.4.12
Time elapsed: 0.10667896270752
Output for 5.4.11
Time elapsed: 0.124587059021
Output for 5.4.10
Time elapsed: 0.10788798332214
Output for 5.4.9
Time elapsed: 0.11972403526306
Output for 5.4.8
Time elapsed: 0.11498785018921
Output for 5.4.7
Time elapsed: 0.11329412460327
Output for 5.4.6
Time elapsed: 0.12546396255493
Output for 5.4.5
Time elapsed: 0.10965418815613
Output for 5.4.4
Time elapsed: 0.10103797912598
Output for 5.4.3
Time elapsed: 0.10457801818848
Output for 5.4.2
Time elapsed: 0.12002897262573
Output for 5.4.1
Time elapsed: 0.10494613647461
Output for 5.4.0
Time elapsed: 0.12571501731873
Output for 5.3.29
Time elapsed: 0.12195301055908
Output for 5.3.28
Time elapsed: 0.13306999206543
Output for 5.3.27
Time elapsed: 0.11653399467468
Output for 5.3.26
Time elapsed: 0.10522794723511
Output for 5.3.25
Time elapsed: 0.11046004295349
Output for 5.3.24
Time elapsed: 0.12018585205078
Output for 5.3.23
Time elapsed: 0.11945295333862
Output for 5.3.22
Time elapsed: 0.10700511932373
Output for 5.3.21
Time elapsed: 0.10887098312378
Output for 5.3.20
Time elapsed: 0.11879205703735
Output for 5.3.19
Time elapsed: 0.12311005592346
Output for 5.3.18
Time elapsed: 0.11425995826721
Output for 5.3.17
Time elapsed: 0.12035512924194
Output for 5.3.16
Time elapsed: 0.12448287010193
Output for 5.3.15
Time elapsed: 0.1305410861969
Output for 5.3.14
Time elapsed: 0.11850500106812
Output for 5.3.13
Time elapsed: 0.12897419929504
Output for 5.3.12
Time elapsed: 0.13164401054382
Output for 5.3.11
Time elapsed: 0.12350606918335
Output for 5.3.10
Time elapsed: 0.13144898414612
Output for 5.3.9
Time elapsed: 0.13267493247986
Output for 5.3.8
Time elapsed: 0.1725869178772
Output for 5.3.7
Time elapsed: 0.12387585639954
Output for 5.3.6
Time elapsed: 0.10732388496399
Output for 5.3.5
Time elapsed: 0.13042402267456
Output for 5.3.4
Time elapsed: 0.11167192459106
Output for 5.3.3
Time elapsed: 0.12522101402283
Output for 5.3.2
Time elapsed: 0.11757397651672
Output for 5.3.1
Time elapsed: 0.12623500823975
Output for 5.3.0
Time elapsed: 0.11259603500366
Output for 5.2.17
Time elapsed: 0.14863896369934
Output for 5.2.16
Time elapsed: 0.14498805999756
Output for 5.2.15
Time elapsed: 0.15602397918701
Output for 5.2.14
Time elapsed: 0.1503849029541
Output for 5.2.13
Time elapsed: 0.14984011650085
Output for 5.2.12
Time elapsed: 0.15130519866943
Output for 5.2.11
Time elapsed: 0.15815305709839
Output for 5.2.10
Time elapsed: 0.14658999443054
Output for 5.2.9
Time elapsed: 0.13821411132812
Output for 5.2.8
Time elapsed: 0.15881991386414
Output for 5.2.7
Time elapsed: 0.151780128479
Output for 5.2.6
Time elapsed: 0.13706588745117
Output for 5.2.5
Time elapsed: 0.15691423416138
Output for 5.2.4
Time elapsed: 0.14402508735657
Output for 5.2.3
Time elapsed: 0.14042592048645
Output for 5.2.2
Time elapsed: 0.14989709854126
Output for 5.2.1
Time elapsed: 0.15285801887512
Output for 5.2.0
Time elapsed: 0.17131900787354
Output for 5.1.6
Time elapsed: 0.17308592796326
Output for 5.1.5
Time elapsed: 0.1941020488739
Output for 5.1.4
Time elapsed: 0.17084097862244
Output for 5.1.3
Time elapsed: 0.13606095314026
Output for 5.1.2
Time elapsed: 0.17552495002747
Output for 5.1.1
Time elapsed: 0.16439414024353
Output for 5.1.0
Time elapsed: 0.15957999229431
Output for 5.0.5
Time elapsed: 0.26026892662048
Output for 5.0.4
Time elapsed: 0.28511309623718
Output for 5.0.3
Time elapsed: 0.25947999954224
Output for 5.0.2
Time elapsed: 0.26344895362854
Output for 5.0.1
Time elapsed: 0.27109098434448
Output for 5.0.0
Time elapsed: 0.28816294670105
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/nC87f 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 T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/nC87f on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/nC87f on line 5
Process exited with code 255.