3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = "resultCode:NoOp errorMessage:null processMessage:2014-08-07 03:33:01:705 INFO begin appName=ixp_app appVersion=2012_11_v01 integrationCode= clientId=999999 userName=autosuggest1 docId=12956633 docType=RFQ recipientId=54784 encodingTypeCode=UTF-8 2014-08-07 03:33:01:706 DEBUG Opening connection to the database 2014-08-07 03:33:01:706 DEBUG Validating client's account 2014-08-07 03:33:01:712 DEBUG Reading original document details from database 2014-08-07 03:33:01:712 DEBUG Reading Header from Database 2014-08-07 03:33:01:715 DEBUG Reading Line Items from Database 2014-08-07 03:33:01:719 DEBUG Reading Party Contacts from Database 2014-08-07 03:33:01:721 DEBUG Constructing Interchange 2014-08-07 03:33:01:721 DEBUG Constructing Request For Quote 2014-08-07 03:33:01:724 DEBUG Constructing Dates 2014-08-07 03:33:01:725 DEBUG Constructing References 2014-08-07 03:33:01:725 DEBUG Constructing Comments 2014-08-07 03:33:01:725 DEBUG Constructing Parties 2014-08-07 03:33:01:726 DEBUG Constructing Line Items 2014-08-07 03:33:01:726 DEBUG Saving original document content to file - raw 2014-08-07 03:33:01:740 INFO Found 1 possible RFQ matches with a Reference No.: 14/449 that was forwarded by Match Buyer 11107 to Supplier 54784 2014-08-07 03:33:01:740 INFO RFQ with Internal Ref No.: 12870348 2014-08-07 03:33:01:740 INFO RFQ 12956633 will now be compared with the list of possible RFQ matches 2014-08-07 03:33:01:740 INFO Comparing RFQ 12956633 with RFQ 12870348 2014-08-07 03:33:01:740 DEBUG Reading Header from Database 2014-08-07 03:33:01:742 DEBUG Reading Line Items from Database 2014-08-07 03:33:01:744 DEBUG Reading Party Contacts from Database 2014-08-07 03:33:01:754 DEBUG Constructing Interchange 2014-08-07 03:33:01:754 DEBUG Constructing Request For Quote 2014-08-07 03:33:01:756 DEBUG Constructing Dates 2014-08-07 03:33:01:756 DEBUG Constructing References 2014-08-07 03:33:01:756 DEBUG Constructing Comments 2014-08-07 03:33:01:756 DEBUG Constructing Parties 2014-08-07 03:33:01:757 DEBUG Constructing Line Items 2014-08-07 03:33:01:758 DEBUG Doc Changed on Actual Line Item Count 2014-08-07 03:33:01:758 DEBUG 1 not equal to 7 2014-08-07 03:33:01:758 DEBUG Committing database transaction 2014-08-07 03:33:01:758 DEBUG Closing connection to the database 2014-08-07 03:33:01:759 INFO end status=NOOP filename=999999_20140807033301_7b536076 elapsed=53ms fileContents:null "; $lines = explode(PHP_EOL, $txt); $userMessages= array(); foreach ($lines as $line) { //print $line . PHP_EOL . '---------' . PHP_EOL; // regexp is 'timestamp debug_level message' if (!preg_match( '/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}:\d{3} \w+ (.*)$/', $line, $matches )) { // top lines with no timestamp, safe to skip them continue; } $message = $matches[1]; $words = explode(' ', $message); if (empty($words)) { // single words are also skipped continue; } if (in_array(strtolower($words[0]), array( 'opening', 'validating', 'reading', 'constructing', 'saving', 'found', 'rfq', 'comparing', 'committing', 'closing', 'end' ))) { // skip know technical message continue; } $userMessages[] = $message; } print_r($userMessages);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0140.00316.75
8.3.50.0050.01422.11
8.3.40.0070.01118.87
8.3.30.0060.01019.04
8.3.20.0080.00620.35
8.3.10.0030.00521.86
8.3.00.0000.00817.89
8.2.180.0030.01216.50
8.2.170.0090.00622.96
8.2.160.0100.01020.34
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0060.00321.08
8.2.110.0090.00022.20
8.2.100.0070.00718.09
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0000.00917.75
8.2.60.0060.00318.05
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0000.00818.06
8.2.20.0000.00717.87
8.2.10.0030.00518.24
8.2.00.0040.00417.91
8.1.280.0060.00925.92
8.1.270.0000.00823.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.64
8.1.230.0090.00319.15
8.1.220.0040.00417.88
8.1.210.0050.00318.77
8.1.200.0000.01017.60
8.1.190.0060.00317.48
8.1.180.0030.00518.10
8.1.170.0050.00318.88
8.1.160.0030.00622.09
8.1.150.0000.00818.85
8.1.140.0080.00317.51
8.1.130.0000.00717.89
8.1.120.0000.00717.68
8.1.110.0030.00517.54
8.1.100.0000.00717.68
8.1.90.0070.00017.66
8.1.80.0000.00817.54
8.1.70.0000.00717.59
8.1.60.0040.00417.76
8.1.50.0000.00817.59
8.1.40.0030.00617.58
8.1.30.0000.00917.87
8.1.20.0040.00417.75
8.1.10.0000.00817.78
8.1.00.0040.00417.68
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0070.00018.53
8.0.270.0000.00717.23
8.0.260.0000.00617.36
8.0.250.0000.00717.10
8.0.240.0000.00717.15
8.0.230.0000.00717.02
8.0.220.0030.00316.96
8.0.210.0000.00817.13
8.0.200.0000.00617.17
8.0.190.0030.00617.16
8.0.180.0050.00217.05
8.0.170.0070.00017.07
8.0.160.0000.00717.03
8.0.150.0000.00717.05
8.0.140.0000.00817.09
8.0.130.0000.00613.53
8.0.120.0060.00316.97
8.0.110.0000.00717.11
8.0.100.0040.00416.98
8.0.90.0050.00217.10
8.0.80.0090.01217.08
8.0.70.0040.00417.04
8.0.60.0030.00517.09
8.0.50.0000.00816.92
8.0.30.0050.01717.44
8.0.20.0110.01117.40
8.0.10.0000.00717.00
8.0.00.0110.00716.92
7.4.330.0000.00615.11
7.4.320.0030.00316.75
7.4.300.0070.00016.84
7.4.290.0070.00016.84
7.4.280.0070.00016.81
7.4.270.0000.00716.75
7.4.260.0000.00716.89
7.4.250.0070.00016.82
7.4.240.0010.00716.88
7.4.230.0040.00416.91
7.4.220.0150.00916.80
7.4.210.0070.00716.81
7.4.200.0070.00016.83
7.4.160.0000.01516.81
7.4.150.0110.00617.40
7.4.140.0110.01017.86
7.4.130.0240.00416.54
7.4.120.0060.01116.73
7.4.110.0090.00916.80
7.4.100.0180.00616.75
7.4.90.0130.00616.74
7.4.80.0040.01719.39
7.4.70.0060.00916.64
7.4.60.0070.01416.98
7.4.50.0080.00016.56
7.4.40.0150.00616.69
7.4.30.0060.01116.65
7.4.00.0000.01215.27
7.3.330.0030.00313.39
7.3.320.0060.00013.44
7.3.310.0000.00716.41
7.3.300.0060.00316.55
7.3.290.0030.01016.47
7.3.280.0070.00816.46
7.3.270.0040.01317.40
7.3.260.0150.00316.71
7.3.240.0070.01316.50
7.3.230.0060.01016.72
7.3.210.0090.00916.55
7.3.200.0070.01419.39
7.3.190.0130.00416.87
7.3.180.0130.00316.54
7.3.170.0100.00716.72
7.3.160.0110.00816.77
7.3.120.0070.00714.95
7.2.330.0030.01516.99
7.2.320.0040.01316.80
7.2.310.0070.01116.84
7.2.300.0110.01117.05
7.2.290.0060.01216.96
7.2.00.0000.01219.57
7.1.100.0030.01218.63
7.1.70.0080.00417.50
7.1.60.0110.01419.40
7.1.50.0160.00617.34
7.1.00.0070.07322.34
7.0.200.0000.00816.82
7.0.140.0030.07322.08
7.0.60.0070.04020.01
7.0.50.0030.09017.89
7.0.40.0000.09320.26
7.0.30.0300.06320.26
7.0.20.0470.06320.25
7.0.10.0270.08020.21
7.0.00.0070.09020.25
5.6.280.0100.07021.02
5.6.210.0000.06020.73
5.6.200.0100.07718.16
5.6.190.0230.07320.45
5.6.180.0300.07320.63
5.6.170.0300.07320.48
5.6.160.0070.05020.48
5.6.150.0030.04018.21
5.6.140.0100.07318.28
5.6.130.0100.05718.27
5.6.120.0170.04020.98
5.6.110.0100.06021.02
5.6.100.0230.07021.14
5.6.90.0000.04321.10
5.6.80.0000.08720.37
5.6.70.4600.03020.40
5.5.350.0170.07720.42
5.5.340.0100.03317.92
5.5.330.0030.08320.29
5.5.320.0370.07020.30
5.5.310.0230.05720.35
5.5.300.0130.07317.94
5.5.290.0100.06717.98
5.5.280.0030.04020.87
5.5.270.0130.07720.84
5.5.260.0070.08320.62
5.5.250.0070.05720.77
5.5.240.4230.03720.23
5.4.450.0430.04019.41
5.4.440.0800.04019.41
5.4.430.0500.03719.46
5.4.420.0570.04319.51
5.4.410.0330.05019.25
5.4.400.0830.03719.13
5.4.390.0370.04318.87
5.4.380.0230.06018.79
5.4.370.0270.05318.77
5.4.360.0370.06318.48
5.4.350.0370.05018.54
5.4.340.0470.05718.76
5.4.320.0050.03612.51
5.4.310.0050.04612.50
5.4.300.0110.03712.50
5.4.290.0090.03912.50
5.4.280.0060.03512.40
5.4.270.0120.03512.39
5.4.260.0050.04012.39
5.4.250.0100.04412.40
5.4.240.0070.03912.39
5.4.230.0080.04012.39
5.4.220.0070.04112.39
5.4.210.0060.03612.39
5.4.200.0050.03912.39
5.4.190.0060.03612.39
5.4.180.0070.03412.39
5.4.170.0050.03612.39
5.4.160.0030.03812.39
5.4.150.0080.03312.39
5.4.140.0050.03812.07
5.4.130.0070.03612.06
5.4.120.0080.03412.02
5.4.110.0050.04812.02
5.4.100.0070.03412.01
5.4.90.0050.03812.01
5.4.80.0070.03612.01
5.4.70.0020.03912.00
5.4.60.0050.03612.01
5.4.50.0040.03612.01
5.4.40.0100.03012.00
5.4.30.0070.04211.99
5.4.20.0090.03211.99
5.4.10.0050.03411.99
5.4.00.0060.03511.49
5.3.290.0060.03912.80
5.3.280.0090.03912.71
5.3.270.0040.04012.72
5.3.260.0080.03612.72
5.3.250.0090.03812.72
5.3.240.0040.03912.72
5.3.230.0090.03912.70
5.3.220.0090.03612.68
5.3.210.0110.03312.68
5.3.200.0070.03512.68
5.3.190.0070.04112.68
5.3.180.0070.03512.67
5.3.170.0060.03512.67
5.3.160.0030.03812.67
5.3.150.0060.04612.68
5.3.140.0100.03712.66
5.3.130.0090.04512.66
5.3.120.0060.03812.66
5.3.110.0100.03712.66
5.3.100.0060.03612.14
5.3.90.0040.03812.12
5.3.80.0080.03512.11
5.3.70.0060.03712.11
5.3.60.0080.03712.10
5.3.50.0060.03912.04
5.3.40.0090.03712.04
5.3.30.0060.04512.02
5.3.20.0050.03511.78
5.3.10.0100.03111.75
5.3.00.0050.03611.73
5.2.170.0060.0359.24
5.2.160.0050.0309.24
5.2.150.0080.0349.24
5.2.140.0060.0379.23
5.2.130.0040.0329.20
5.2.120.0050.0289.20
5.2.110.0060.0329.21
5.2.100.0060.0399.20
5.2.90.0050.0299.20
5.2.80.0070.0289.20
5.2.70.0020.0329.20
5.2.60.0050.0299.14
5.2.50.0050.0319.12
5.2.40.0030.0339.10
5.2.30.0050.0309.08
5.2.20.0060.0299.07
5.2.10.0050.0298.96
5.2.00.0060.0298.82
5.1.60.0050.0238.08
5.1.50.0060.0248.08
5.1.40.0050.0238.06
5.1.30.0020.0288.41
5.1.20.0040.0278.43
5.1.10.0030.0278.16
5.1.00.0060.0248.16
5.0.50.0040.0206.64
5.0.40.0030.0206.50
5.0.30.0030.0326.31
5.0.20.0020.0216.29
5.0.10.0040.0206.25
5.0.00.0050.0286.25
4.4.90.0020.0164.78
4.4.80.0030.0224.75
4.4.70.0050.0244.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0020.0164.75
4.4.20.0020.0164.85
4.4.10.0080.0144.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0030.0154.66
4.3.90.0030.0144.64
4.3.80.0020.0304.58
4.3.70.0030.0234.63
4.3.60.0060.0104.62
4.3.50.0010.0174.63
4.3.40.0020.0254.54
4.3.30.0050.0133.30
4.3.20.0040.0143.28
4.3.10.0030.0153.23
4.3.00.0030.02014.10

preferences:
66.67 ms | 401 KiB | 5 Q