3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$myfile = fopen("data.txt", "r") or die("Unable to open file!"); //$data=fread($myfile,filesize("data.txt")); //var_dump($data); $data="<root><top><data Level='1' Con='99%' TotalScore='82.60' Summarize='1111111111111111111。' SummarizeNoCapital='22222222222222222222222' HowToDo='333333333333333333' Info='444444444444444' IndustryType='more' SpecialTitle='' SpecialNewsID='0' CompanyDes='555555555555555' OperatingDes='6666666666666666666666666666'/></top><spider><data SBasic='8.5' SMsg='5.2' SIndustry='6.5' SMajor='9.5' STechBlock='4.5' STech='6.5' BBasic='6.9' BMsg='5.2' BIndustry='6.5' BMajor='5.6' BTechBlock='4.5' BTech='6.6'/></spider></root>"; var_dump(simplexml_load_string($data));
based on aU7WA

Here you find the average performance (time & memory) of each version. A greyed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0030.01019.46
7.1.100.0000.01718.36
7.1.70.0060.00317.02
7.1.60.0180.00719.48
7.1.50.0100.01016.93
7.1.00.0070.07022.50
7.0.200.1290.00715.03
7.0.60.0100.04019.91
7.0.50.0000.05017.98
7.0.40.0100.03720.20
7.0.30.0270.04720.31
7.0.20.0370.08020.37
7.0.10.0100.08720.14
7.0.00.0100.03720.14
5.6.280.0000.07721.16
5.6.210.0000.08720.91
5.6.200.0000.08018.30
5.6.190.0100.05020.81
5.6.180.0370.07320.51
5.6.170.0170.06320.66
5.6.160.0030.06020.66
5.6.150.0100.06018.32
5.6.140.0100.08318.19
5.6.130.0130.06718.27
5.6.120.0170.05721.04
5.6.110.0070.08021.04
5.6.100.0030.09021.16
5.6.90.0130.08021.17
5.6.80.0100.05720.41
5.5.350.4230.04320.49
5.5.340.0030.08718.02
5.5.330.0130.03720.23
5.5.320.0030.08720.27
5.5.310.0230.05720.29
5.5.300.0130.04318.09
5.5.290.0130.04018.07
5.5.280.0070.08320.88
5.5.270.0070.09020.77
5.5.260.0130.07320.84
5.5.250.0170.07720.70
5.5.240.0400.05720.10
5.4.450.0600.06319.46
5.4.440.0630.06019.54
5.4.430.0770.04719.52
5.4.420.0600.06019.70
5.4.410.0630.05719.49
5.4.400.1000.06319.35
5.4.390.0700.06719.32
5.4.380.0630.05319.13
5.4.370.0830.05719.22
5.4.360.1130.08719.16
5.4.350.0800.05718.99
5.4.340.0800.04019.34
5.4.320.0570.06319.39
5.4.310.0670.05019.34
5.4.300.0700.04719.22
5.4.290.0730.05719.18
5.4.280.0670.05719.33
5.4.270.0630.05719.38
5.4.260.0670.05019.13
5.4.250.0700.05019.37
5.4.240.0770.05719.02
5.4.230.0800.06319.40
5.4.220.0630.05719.38
5.4.210.0730.05019.29
5.4.200.0700.04719.39
5.4.190.0670.05319.37
5.4.180.0830.05319.01
5.4.170.0800.05319.35
5.4.160.0770.05319.11
5.4.150.0830.05019.36
5.4.140.0870.04316.51
5.4.130.0900.04016.63
5.4.120.0800.05016.48
5.4.110.0800.05016.61
5.4.100.0700.05716.58
5.4.90.0800.04716.60
5.3.290.0700.05014.79
5.3.280.0730.04314.64
5.3.270.0800.05314.65
5.3.260.0670.06714.63
5.3.250.0700.06014.82
5.3.240.0930.04014.59
5.3.230.0830.05014.61
5.3.220.0730.06014.61
5.3.210.0770.05714.59
5.3.200.0730.05714.57
5.3.190.0830.04714.68