3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $buffer = <<<'BUFFER' <Mediainfo version="0.7.62"> <File> <track type="General"> <UniqueID_String>242652904449958064145306342749155800074 (0xB68D3FDDBE0F9B3E865F70325496B40A)</UniqueID_String> <CompleteName>D:\Encoder\videos\raw\063 - 077 (Season_02)\064 - A Pirate-Loving Town Arrival at Whiskey Peak.mkv</CompleteName> <Format>Matroska</Format> <Format_Version>Version 1</Format_Version> <FileSize_String>40.0 MiB</FileSize_String> <Duration_String>24mn 6s</Duration_String> <OverallBitRate_String>232 Kbps</OverallBitRate_String> <Encoded_Date>UTC 2008-08-26 15:24:58</Encoded_Date> <Encoded_Application>mkvmerge v2.2.0 (&apos;Turn It On Again&apos;) built on Mar 4 2008 12:58:26</Encoded_Application> <Encoded_Library_String>libebml v0.7.7 + libmatroska v0.8.1</Encoded_Library_String> </track> </File> </Mediainfo> BUFFER; $xml = simplexml_load_string($buffer); $iterations = 100000; $start = microtime(true); for($i = $iterations; $i--;) { $test = $xml->xpath('/*'); } printf("Result %.5f\n", $atime = microtime(true) - $start); $start = microtime(true); for($i = $iterations; $i--;) { $test = $xml->xpath('/Mediainfo'); } printf("Result %.5f\n", $btime = microtime(true) - $start);
Output for 7.1.0
Result 0.13362 Result 0.12800
Output for 7.0.14
Result 0.14523 Result 0.11218
Output for 7.0.12
Result 0.14639 Result 0.12196
Output for 7.0.6
Result 0.10705 Result 0.10388
Output for 7.0.5
Result 0.10186 Result 0.10129
Output for 7.0.4
Result 0.10662 Result 0.09982
Output for 7.0.3
Result 0.09882 Result 0.10275
Output for 7.0.2
Result 0.08717 Result 0.11252
Output for 7.0.1
Result 0.10499 Result 0.10124
Output for 7.0.0
Result 0.10714 Result 0.09932
Output for hhvm-3.12.0
Result 0.08841 Result 0.09815
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
Result 0.07643 Result -0.13034
Output for 5.6.21
Result 0.11558 Result 0.10981
Output for 5.6.20
Result 0.14008 Result 0.12755
Output for 5.6.19
Result 0.11996 Result 0.10896
Output for 5.6.18
Result 0.10683 Result 0.11821
Output for 5.6.17
Result 0.16300 Result 0.11697
Output for 5.6.16
Result 0.11235 Result 0.11156
Output for 5.6.15
Result 0.12905 Result 0.12561
Output for 5.6.14
Result 0.10616 Result 0.11754
Output for 5.6.13
Result 0.11290 Result 0.11326
Output for 5.6.12
Result 0.10572 Result 0.11670
Output for 5.6.11
Result 0.09945 Result 0.11033
Output for 5.6.10
Result 0.12743 Result 0.14034
Output for 5.6.9
Result 0.10429 Result 0.11137
Output for 5.6.8
Result 0.10295 Result 0.12238
Output for 5.5.35
Result 0.10103 Result 0.11146
Output for 5.5.34
Result 0.11808 Result 0.12452
Output for 5.5.33
Result 0.10192 Result 0.11299
Output for 5.5.32
Result 0.11055 Result 0.11414
Output for 5.5.31
Result 0.11237 Result 0.11254
Output for 5.5.30
Result 0.10118 Result 0.11307
Output for 5.5.29
Result 0.12258 Result 0.11474
Output for 5.5.28
Result 0.11167 Result 0.11776
Output for 5.5.27
Result 0.11405 Result 0.11500
Output for 5.5.26
Result 0.10133 Result 0.11178
Output for 5.5.25
Result 0.10839 Result 0.11960
Output for 5.5.24
Result 0.10402 Result 0.10154
Output for 5.4.45
Result 0.12199 Result 0.10999
Output for 5.4.44
Result 0.10212 Result 0.11194
Output for 5.4.43
Result 0.11906 Result 0.11252
Output for 5.4.42
Result 0.12576 Result 0.11212
Output for 5.4.41
Result 0.13009 Result 0.16545
Output for 5.4.40
Result 0.11405 Result 0.11053
Output for 5.4.39
Result 0.12877 Result 0.11373
Output for 5.4.38
Result 0.12821 Result 0.11115
Output for 5.4.37
Result 0.13177 Result 0.11971
Output for 5.4.36
Result 0.11799 Result 0.11799
Output for 5.4.35
Result 0.12888 Result 0.11124
Output for 5.4.34
Result 0.10893 Result 0.12616
Output for 5.4.32
Result 0.14893 Result 0.11187
Output for 5.4.31
Result 0.12997 Result 0.11766
Output for 5.4.30
Result 0.16032 Result 0.15516
Output for 5.4.29
Result 0.12113 Result 0.11081
Output for 5.4.28
Result 0.12999 Result 0.11884
Output for 5.4.27
Result 0.13069 Result 0.11080
Output for 5.4.26
Result 0.13419 Result 0.13915
Output for 5.4.25
Result 0.10602 Result 0.11250
Output for 5.4.24
Result 0.11931 Result 0.11167
Output for 5.4.23
Result 0.12441 Result 0.11319
Output for 5.4.22
Result 0.12799 Result 0.11189
Output for 5.4.21
Result 0.10959 Result 0.11332
Output for 5.4.20
Result 0.11966 Result 0.11165
Output for 5.4.19
Result 0.11232 Result 0.11150
Output for 5.4.18
Result 0.12428 Result 0.11110
Output for 5.4.17
Result 0.12461 Result 0.11558
Output for 5.4.16
Result 0.10171 Result 0.11116
Output for 5.4.15
Result 0.11159 Result 0.11567
Output for 5.4.14
Result 0.10032 Result 0.11335
Output for 5.4.13
Result 0.10781 Result 0.11161
Output for 5.4.12
Result 0.11077 Result 0.11414
Output for 5.4.11
Result 0.13780 Result 0.13390
Output for 5.4.10
Result 0.14169 Result 0.14815
Output for 5.4.9
Result 0.09884 Result 0.11782
Output for 5.4.8
Result 0.09703 Result 0.10924
Output for 5.4.7
Result 0.09649 Result 0.10709
Output for 5.4.6
Result 0.10328 Result 0.11401
Output for 5.4.5
Result 0.10176 Result 0.11218
Output for 5.4.4
Result 0.14365 Result 0.15276
Output for 5.4.3
Result 0.09807 Result 0.10747
Output for 5.4.2
Result 0.09887 Result 0.11524
Output for 5.4.1
Result 0.12327 Result 0.12577
Output for 5.4.0
Result 0.12651 Result 0.10760
Output for 5.3.29
Result 0.10758 Result 0.11774
Output for 5.3.28
Result 0.12405 Result 0.11825
Output for 5.3.27
Result 0.13344 Result 0.12005
Output for 5.3.26
Result 0.12886 Result 0.12477
Output for 5.3.25
Result 0.12559 Result 0.12243
Output for 5.3.24
Result 0.11985 Result 0.12274
Output for 5.3.23
Result 0.12523 Result 0.12102
Output for 5.3.22
Result 0.11972 Result 0.11883
Output for 5.3.21
Result 0.11313 Result 0.12260
Output for 5.3.20
Result 0.13841 Result 0.12356
Output for 5.3.19
Result 0.11385 Result 0.12394
Output for 5.3.18
Result 0.10643 Result 0.11493
Output for 5.3.17
Result 0.11251 Result 0.12334
Output for 5.3.16
Result 0.11621 Result 0.12588
Output for 5.3.15
Result 0.10658 Result 0.11723
Output for 5.3.14
Result 0.16120 Result 0.17498
Output for 5.3.13
Result 0.12271 Result 0.13542
Output for 5.3.12
Result 0.10844 Result 0.11842
Output for 5.3.11
Result 0.10463 Result 0.11530
Output for 5.3.10
Result 0.11720 Result 0.12695
Output for 5.3.9
Result 0.12823 Result 0.11615
Output for 5.3.8
Result 0.10592 Result 0.11389
Output for 5.3.7
Result 0.13960 Result 0.12599
Output for 5.3.6
Result 0.13708 Result 0.12413
Output for 5.3.5
Result 0.11264 Result 0.12444
Output for 5.3.4
Result 0.12389 Result 0.12449
Output for 5.3.3
Result 0.12460 Result 0.12198
Output for 5.3.2
Result 0.11871 Result 0.11819
Output for 5.3.1
Result 0.13209 Result 0.11881
Output for 5.3.0
Result 0.12161 Result 0.11933
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_SL in /in/0YLBP on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_SL in /in/0YLBP on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/0YLBP on line 2
Process exited with code 255.