3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<'XML' <?xml version="1.0" encoding="UTF-8"?> <resume> <personal_info> <birthdate>07/08/1988</birthdate> </personal_info> <jobs> <job> <company>Radio Shack</company> <title>Sales Representative</title> <startdate>01/01/2011</startdate> <enddate>02/02/2011</enddate> <duration>1.5yrs</duration> <sortdate>20110101</sortdate> </job> <job> <company>Radio Shack2</company> <title>Sales Representative</title> <startdate>01/01/2013</startdate> <enddate>02/02/2013</enddate> <duration>1.5yrs</duration> <sortdate>20130202</sortdate> </job> </jobs> </resume> XML; $xslt = <<<'XSLT' <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <h2>My Word Download</h2> <xsl:for-each select="resume/jobs/job"> <xsl:sort select="sortdate" data-type="number" order="descending" /> <div> <xsl:value-of select="company" /> - <xsl:value-of select="title"/> </div> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet> XSLT; $xmlDom = new DOMDocument(); $xmlDom->loadXml($xml); $xslDom = new DOMDocument(); //$xslDOM->load($xsltFile); $xslDom->loadXml($xslt); $processor = new XsltProcessor(); $processor->importStylesheet($xslDom); echo $processor->transformToXml($xmlDom);

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.0070.00716.75
8.3.50.0100.00822.18
8.3.40.0110.00419.22
8.3.30.0120.00319.38
8.3.20.0040.00420.54
8.3.10.0080.00023.77
8.3.00.0120.00017.63
8.2.180.0120.00925.92
8.2.170.0100.01019.25
8.2.160.0070.00720.65
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00422.64
8.2.110.0150.00622.50
8.2.100.0200.00017.76
8.2.90.0060.00319.20
8.2.80.0030.00617.97
8.2.70.0090.00017.63
8.2.60.0030.00618.16
8.2.50.0030.00718.07
8.2.40.0090.00318.18
8.2.30.0000.00818.23
8.2.20.0000.00818.04
8.2.10.0040.00418.25
8.2.00.0070.00017.88
8.1.280.0140.00325.92
8.1.270.0040.00424.04
8.1.260.0000.00826.35
8.1.250.0090.00028.09
8.1.240.0100.00723.92
8.1.230.0080.00319.46
8.1.220.0000.00818.04
8.1.210.0080.00018.77
8.1.200.0080.00317.60
8.1.190.0040.00417.60
8.1.180.0030.00619.14
8.1.170.0000.00818.81
8.1.160.0050.00322.14
8.1.150.0040.00418.83
8.1.140.0070.00017.59
8.1.130.0000.00718.07
8.1.120.0050.00317.62
8.1.110.0040.00417.68
8.1.100.0070.00017.60
8.1.90.0040.00417.70
8.1.80.0040.00417.52
8.1.70.0000.00717.70
8.1.60.0040.00417.80
8.1.50.0000.00817.64
8.1.40.0040.00417.68
8.1.30.0030.00617.86
8.1.20.0080.00017.97
8.1.10.0020.00517.70
8.1.00.0030.00517.84
8.0.300.0000.00718.77
8.0.290.0070.00017.30
8.0.280.0070.00018.62
8.0.270.0040.00417.43
8.0.260.0000.00617.39
8.0.250.0040.00417.27
8.0.240.0000.00817.21
8.0.230.0030.00317.04
8.0.220.0070.00017.11
8.0.210.0000.00717.07
8.0.200.0030.00317.27
8.0.190.0030.00517.21
8.0.180.0000.00717.18
8.0.170.0020.00517.07
8.0.160.0000.00717.00
8.0.150.0110.00017.05
8.0.140.0040.00416.97
8.0.130.0000.00713.44
8.0.120.0050.00317.05
8.0.110.0000.00817.04
8.0.100.0040.00417.09
8.0.90.0050.00317.05
8.0.80.0100.00717.26
8.0.70.0040.00417.19
8.0.60.0020.00517.08
8.0.50.0000.00717.20
8.0.30.0100.01217.29
8.0.20.0100.01017.40
8.0.10.0000.00817.29
8.0.00.0090.00816.99
7.4.330.0030.00315.21
7.4.320.0000.00716.88
7.4.300.0040.00416.92
7.4.290.0030.00316.87
7.4.280.0030.00616.76
7.4.270.0070.00016.78
7.4.260.0040.00416.93
7.4.250.0040.00416.82
7.4.240.0030.00616.75
7.4.230.0060.00316.66
7.4.220.0090.00916.89
7.4.210.0110.00616.78
7.4.200.0000.00716.66
7.4.190.0070.00016.86
7.4.160.0090.00916.97
7.4.150.0100.01017.40
7.4.140.0090.00917.86
7.4.130.0100.00716.76
7.4.120.0080.01016.71
7.4.110.0070.01416.75
7.4.100.0030.01316.69
7.4.90.0130.00516.72
7.4.80.0150.00619.39
7.4.70.0030.01316.73
7.4.60.0060.01016.63
7.4.50.0040.00016.50
7.4.40.0160.00016.66
7.4.30.0110.01116.78
7.4.00.0080.01015.13
7.3.330.0000.00513.20
7.3.320.0030.00313.34
7.3.310.0000.00716.53
7.3.300.0030.00316.29
7.3.290.0030.01716.50
7.3.280.0120.00616.48
7.3.270.0110.01317.40
7.3.260.0120.00616.47
7.3.250.0090.00816.45
7.3.240.0030.01416.59
7.3.230.0090.00916.75
7.3.210.0110.00616.55
7.3.200.0100.01019.39
7.3.190.0080.00916.53
7.3.180.0030.01216.77
7.3.170.0160.00016.57
7.3.160.0040.01216.43
7.3.120.0060.00914.69
7.3.110.0070.01015.03
7.3.100.0130.00014.72
7.3.90.0000.00915.00
7.3.80.0030.00715.25
7.3.70.0030.01014.95
7.3.60.0030.00914.68
7.3.50.0030.01314.95
7.3.40.0040.01114.71
7.3.30.0030.00614.80
7.3.20.0070.00416.79
7.3.10.0090.00316.62
7.3.00.0060.00816.61
7.2.330.0230.01616.67
7.2.320.0130.00316.59
7.2.310.0150.00316.45
7.2.300.0070.01016.88
7.2.290.0140.00316.71
7.2.250.0070.01114.91
7.2.240.0070.01314.77
7.2.230.0090.00614.66
7.2.220.0040.00714.87
7.2.210.0050.00515.29
7.2.200.0040.01114.84
7.2.190.0040.01215.10
7.2.180.0060.00614.87
7.2.170.0000.00914.93
7.2.130.0120.00316.73
7.2.120.0030.00916.91
7.2.110.0000.01416.92
7.2.100.0000.01116.66
7.2.90.0040.01116.80
7.2.80.0030.00916.87
7.2.70.0040.00816.88
7.2.60.0040.01117.03
7.2.50.0050.00516.83
7.2.40.0070.00716.74
7.2.30.0000.01316.86
7.2.20.0000.00916.98
7.2.10.0090.00316.82
7.2.00.0030.01218.03
7.1.330.0000.01415.65
7.1.320.0050.00515.69
7.1.310.0060.00615.98
7.1.300.0080.00415.79
7.1.290.0030.01015.69
7.1.280.0040.01115.71
7.1.270.0060.00315.80
7.1.260.0030.01315.78
7.1.250.0030.01015.88
7.1.200.0000.00715.78
7.1.100.0060.00917.83
7.1.70.0030.00516.89
7.1.60.0090.01619.46
7.1.50.0030.01316.68
7.1.00.0070.07722.60
7.0.200.0000.00716.96
7.0.140.0000.07722.17
7.0.60.0130.06719.96
7.0.50.0100.05717.91
7.0.40.0030.05320.13
7.0.30.0270.08020.39
7.0.20.0270.05020.18
7.0.10.0230.07320.21
7.0.00.0030.04320.38
5.6.280.0030.07320.98
5.6.210.0070.04720.71
5.6.200.0130.04018.32
5.6.190.0030.04320.48
5.6.180.3370.04020.77
5.6.170.0430.07320.48
5.6.160.0100.08320.70
5.6.150.0000.05018.33
5.6.140.0030.04018.33
5.6.130.0100.08018.27
5.6.120.0170.08020.98
5.6.110.0100.08321.03
5.6.100.0070.05321.20
5.6.90.0070.08321.16
5.6.80.0100.08320.49
5.6.70.0270.07320.40
5.5.350.0300.06020.60
5.5.340.0130.06718.06
5.5.330.0170.04320.45
5.5.320.0470.06020.26
5.5.310.0300.07720.38
5.5.300.0030.05718.03
5.5.290.0000.05318.13
5.5.280.0030.04320.99
5.5.270.0070.04020.91
5.5.260.0130.07321.08
5.5.250.0130.07720.74
5.5.240.0030.03720.46
5.4.450.0270.04719.57
5.4.440.0600.06319.55
5.4.430.0630.06719.69
5.4.420.0670.00019.41
5.4.410.0100.05319.09
5.4.400.0230.04718.91
5.4.390.0230.04718.77
5.4.380.0300.04318.82
5.4.370.0100.04318.78
5.4.360.0130.04018.67
5.4.350.0080.03612.17
5.4.340.0050.04712.16
5.4.320.0040.04312.66
5.4.310.0070.04012.65
5.4.300.0070.03512.66
5.4.290.0070.04112.65
5.4.280.0030.04212.55
5.4.270.0100.03912.55
5.4.260.0120.07312.55
5.4.250.0090.04812.55
5.4.240.0180.05112.55
5.4.230.0050.04512.54
5.4.220.0270.11312.54
5.4.210.0070.05112.54
5.4.200.0040.04512.54
5.4.190.0060.03812.54
5.4.180.0090.04012.54
5.4.170.0070.03612.55
5.4.160.0060.03812.54
5.4.150.0100.03812.54
5.4.140.0120.04412.23
5.4.130.0170.06212.21
5.4.120.0130.06412.17
5.4.110.0110.03912.17
5.4.100.0090.05712.16
5.4.90.0080.04212.16
5.4.80.0090.05312.16
5.4.70.0120.04812.16
5.4.60.0160.03712.16
5.4.50.0070.04012.16
5.4.40.0100.05312.14
5.4.30.0160.06812.15
5.4.20.0180.07912.14
5.4.10.0080.07612.15
5.4.00.0090.06111.64
5.3.290.0030.05012.91
5.3.280.0070.06012.84
5.3.270.0090.06112.86
5.3.260.0070.06312.86
5.3.250.0070.06112.86
5.3.240.0170.08212.86
5.3.230.0180.08512.85
5.3.220.0170.09312.82
5.3.210.0110.08012.82
5.3.200.0150.07712.81
5.3.190.0130.05412.82
5.3.180.0110.05812.82
5.3.170.0100.06712.82
5.3.160.0080.06112.82
5.3.150.0110.06112.81
5.3.140.0160.09112.80
5.3.130.0090.04112.80
5.3.120.0090.04112.80
5.3.110.0100.04712.80
5.3.100.0110.05212.29
5.3.90.0100.05412.27
5.3.80.0210.11412.25
5.3.70.0160.07412.26
5.3.60.0260.07012.24
5.3.50.0080.05312.20
5.3.40.0080.06012.19
5.3.30.0130.07112.15
5.3.20.0120.05511.93
5.3.10.0050.06511.89
5.3.00.0150.05611.88
5.2.170.0100.0529.18
5.2.160.0180.0669.19
5.2.150.0140.0829.18
5.2.140.0150.0699.18
5.2.130.0150.0609.14
5.2.120.0210.0679.14
5.2.110.0080.0549.15
5.2.100.0220.0889.14
5.2.90.0050.0519.14
5.2.80.0230.0809.14
5.2.70.0180.0719.13
5.2.60.0120.0779.09
5.2.50.0080.0569.06
5.2.40.0100.0659.04
5.2.30.0090.0509.01
5.2.20.0190.0729.00
5.2.10.0150.0428.93
5.2.00.0090.0588.79
5.1.60.0070.0348.07
5.1.50.0130.0398.07
5.1.40.0100.0308.05
5.1.30.0170.0448.40
5.1.20.0090.0378.41
5.1.10.0090.0368.14
5.1.00.0070.0398.14
5.0.50.0040.0316.63
5.0.40.0070.0316.48
5.0.30.0070.0416.29
5.0.20.0060.0326.26
5.0.10.0060.0316.24
5.0.00.0090.0686.23
4.4.90.0100.0414.78
4.4.80.0080.0454.75
4.4.70.0020.0304.75
4.4.60.0040.0284.75
4.4.50.0060.0224.77
4.4.40.0050.0374.71
4.4.30.0030.0254.76
4.4.20.0090.0264.85
4.4.10.0030.0194.85
4.4.00.0040.0264.76
4.3.110.0040.0174.67
4.3.100.0030.0164.66
4.3.90.0040.0164.64
4.3.80.0040.0274.59
4.3.70.0030.0164.63
4.3.60.0040.0164.63
4.3.50.0090.0624.62
4.3.40.0070.0354.54
4.3.30.0070.0223.29
4.3.20.0040.0303.26
4.3.10.0020.0233.22
4.3.00.0100.0276.62

preferences:
41.63 ms | 401 KiB | 5 Q