3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Value = 'rId4'; $rels= new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet2.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>'); $rels->registerXPathNamespace('r', 'http://schemas.openxmlformats.org/package/2006/relationships'); $elems = $rels->xpath('/r:Relationships/r:Relationship[@Id and @Target and @Type = \'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet\']'); echo get_class($elems[0]), PHP_EOL; echo get_class($elems[0]->Target), PHP_EOL; echo '1:', $elems[0]->Target, PHP_EOL; echo '2:', $elems[0]['Target'], PHP_EOL; echo get_class($elems[0]->Target[0]), PHP_EOL; echo '3:', $elems[0]->Target[0], PHP_EOL; echo '4:', $elems[0]['Target'][0], PHP_EOL; $map = []; foreach ( $elems as $elem ) { $map[$elem['Id']] = $elem['Target']; } print_r($map);

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.70.0070.00717.38
8.3.60.0150.00617.38
8.3.50.0110.01022.18
8.3.40.0070.00719.23
8.3.30.0070.00719.05
8.3.20.0030.00620.54
8.3.10.0040.00423.88
8.3.00.0050.00319.98
8.2.180.0090.00618.80
8.2.170.0120.00322.96
8.2.160.0100.00320.87
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00519.54
8.2.120.0040.00426.35
8.2.110.0060.00622.58
8.2.100.0080.00418.43
8.2.90.0000.00819.59
8.2.80.0050.00318.00
8.2.70.0060.00318.13
8.2.60.0030.00518.30
8.2.50.0060.00318.25
8.2.40.0060.00322.76
8.2.30.0040.00421.11
8.2.20.0090.00018.22
8.2.10.0050.00318.62
8.2.00.0040.00418.61
8.1.280.0000.01525.92
8.1.270.0070.01320.61
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00024.30
8.1.230.0040.00719.44
8.1.220.0050.00318.02
8.1.210.0050.00518.77
8.1.200.0040.00417.75
8.1.190.0050.00317.60
8.1.180.0050.00318.10
8.1.170.0030.00518.76
8.1.160.0040.00421.10
8.1.150.0000.00719.16
8.1.140.0050.00319.89
8.1.130.0070.00018.08
8.1.120.0070.00017.69
8.1.110.0030.00617.82
8.1.100.0070.00017.69
8.1.90.0000.00717.86
8.1.80.0040.00417.70
8.1.70.0050.00217.63
8.1.60.0030.00617.79
8.1.50.0060.00318.01
8.1.40.0030.00517.84
8.1.30.0040.00417.88
8.1.20.0050.00317.92
8.1.10.0000.00818.02
8.1.00.0080.00017.96
8.0.300.0040.00418.77
8.0.290.0050.00317.13
8.0.280.0040.00418.93
8.0.270.0030.00317.62
8.0.260.0000.00617.58
8.0.250.0030.00317.28
8.0.240.0030.00317.29
8.0.230.0040.00417.19
8.0.220.0030.00517.37
8.0.210.0040.00417.34
8.0.200.0070.00017.42
8.0.190.0090.00017.24
8.0.180.0050.00317.23
8.0.170.0040.00417.42
8.0.160.0000.00717.46
8.0.150.0090.00317.32
8.0.140.0040.00417.29
8.0.130.0040.00413.59
8.0.120.0040.00417.15
8.0.110.0050.00317.29
8.0.100.0040.00417.23
8.0.90.0000.00717.09
8.0.80.0140.00417.27
8.0.70.0070.00017.28
8.0.60.0040.00417.16
8.0.50.0000.00817.29
8.0.30.0070.01017.63
8.0.20.0160.00317.58
8.0.10.0050.00217.20
8.0.00.0090.00817.15
7.4.330.0000.00517.19
7.4.320.0080.00016.95
7.4.300.0000.00716.96
7.4.290.0070.00016.91
7.4.280.0050.00516.98
7.4.270.0000.00716.96
7.4.260.0070.00017.06
7.4.250.0050.00316.94
7.4.240.0020.00617.01
7.4.230.0030.00316.90
7.4.220.0130.00717.06
7.4.210.0080.00616.98
7.4.200.0030.00517.01
7.4.160.0060.00916.98
7.4.150.0080.01117.40
7.4.140.0130.00917.86
7.4.130.0080.01017.00
7.4.120.0120.00616.96
7.4.110.0040.01517.04
7.4.100.0130.00617.00
7.4.90.0090.00916.85
7.4.80.0090.00919.39
7.4.70.0060.01417.06
7.4.60.0130.00316.85
7.4.50.0060.00916.96
7.4.40.0100.01116.86
7.4.30.0100.00716.86
7.4.00.0070.00915.31
7.3.330.0000.00613.59
7.3.320.0000.00713.52
7.3.310.0020.00516.53
7.3.300.0030.00316.69
7.3.290.0000.00716.69
7.3.280.0110.00816.75
7.3.270.0090.01017.40
7.3.260.0170.00716.73
7.3.250.0100.01016.77
7.3.240.0140.00316.96
7.3.230.0140.00716.77
7.3.210.0150.00316.94
7.3.200.0060.01116.62
7.3.190.0100.00716.88
7.3.180.0150.00816.71
7.3.170.0130.01016.93
7.3.160.0100.01016.91
7.3.120.0100.01015.05
7.3.110.0000.01915.13
7.3.100.0070.00715.27
7.3.90.0060.01014.80
7.3.80.0090.00415.11
7.3.70.0090.00015.13
7.3.60.0040.01114.94
7.3.50.0000.01314.99
7.3.40.0030.01215.27
7.3.30.0060.01214.91
7.3.20.0000.01316.74
7.3.10.0110.00316.85
7.3.00.0100.00017.13
7.2.330.0170.00317.20
7.2.320.0070.01317.20
7.2.310.0110.00817.02
7.2.300.0070.01116.95
7.2.290.0170.00316.95
7.2.250.0100.01015.36
7.2.240.0030.01015.46
7.2.230.0040.01115.18
7.2.220.0070.01015.18
7.2.210.0060.00914.84
7.2.200.0060.00615.26
7.2.190.0030.00915.36
7.2.180.0100.01015.21
7.2.170.0060.01314.98
7.2.60.0030.01017.14
7.2.00.0570.00019.26
7.1.330.0100.00716.20
7.1.320.0150.00015.94
7.1.310.0070.01115.82
7.1.300.0030.01515.81
7.1.290.0000.01615.84
7.1.280.0120.00615.77
7.1.270.0050.00515.93
7.1.260.0000.01415.83
7.1.200.0070.00716.01
7.1.100.0060.01218.02
7.1.70.0080.00017.54
7.1.60.0130.01319.52
7.1.50.0070.01117.14
7.1.00.0100.07022.52
7.0.200.0030.00317.07
7.0.60.0070.08720.23
7.0.50.0000.05018.11
7.0.40.0030.05020.28
7.0.30.0200.04320.41
7.0.20.0100.04720.19
7.0.10.0030.04320.38
7.0.00.0170.07320.19
5.6.280.0000.03321.05
5.6.210.0070.05020.90
5.6.200.0000.04318.37
5.6.190.0100.08020.89
5.6.180.0300.08020.59
5.6.170.0230.04020.70
5.6.160.0070.07320.56
5.6.150.0070.08018.34
5.6.140.0070.07018.37
5.6.130.0100.08718.30
5.6.120.0100.07721.13
5.6.110.0070.07021.28
5.6.100.0100.08721.12
5.6.90.0070.06721.29
5.6.80.0230.06720.68
5.5.350.0200.06320.57
5.5.340.0070.03718.17
5.5.330.0170.03320.68
5.5.320.0570.04020.71
5.5.310.0200.04320.36
5.5.300.0030.05018.12
5.5.290.0100.04018.13
5.5.280.0070.06021.00
5.5.270.0130.07720.95
5.5.260.0230.06720.97
5.5.250.0030.04020.75
5.5.240.0300.07020.56

preferences:
48.17 ms | 401 KiB | 5 Q