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[(string)$elem['Id']] = (string)$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.60.0210.00017.00
8.3.50.0090.00918.56
8.3.40.0040.01119.35
8.3.30.0090.00619.22
8.3.20.0040.00420.54
8.3.10.0040.00423.83
8.3.00.0080.00020.22
8.2.180.0060.01019.04
8.2.170.0140.00422.96
8.2.160.0030.01021.08
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0090.00019.75
8.2.120.0040.00426.35
8.2.110.0060.00319.83
8.2.100.0090.00318.30
8.2.90.0000.00819.39
8.2.80.0040.00418.13
8.2.70.0060.00318.13
8.2.60.0040.00418.43
8.2.50.0060.00318.13
8.2.40.0040.00422.78
8.2.30.0040.00420.98
8.2.20.0040.00418.16
8.2.10.0000.00818.41
8.2.00.0040.00418.59
8.1.280.0110.00725.92
8.1.270.0150.00420.83
8.1.260.0000.00928.09
8.1.250.0040.00428.09
8.1.240.0070.00323.06
8.1.230.0070.00419.65
8.1.220.0040.00418.14
8.1.210.0060.00318.77
8.1.200.0050.00517.63
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0000.00819.03
8.1.160.0030.00520.99
8.1.150.0040.00419.26
8.1.140.0040.00419.89
8.1.130.0000.00718.11
8.1.120.0070.00017.86
8.1.110.0080.00017.80
8.1.100.0040.00417.67
8.1.90.0030.00617.81
8.1.80.0040.00417.71
8.1.70.0000.00717.72
8.1.60.0000.00817.94
8.1.50.0090.00017.93
8.1.40.0040.00417.77
8.1.30.0030.00517.92
8.1.20.0070.00018.08
8.1.10.0080.00017.99
8.1.00.0000.00817.99
8.0.300.0040.00418.77
8.0.290.0040.00416.98
8.0.280.0040.00418.89
8.0.270.0030.00317.64
8.0.260.0030.00317.65
8.0.250.0000.00717.47
8.0.240.0040.00417.45
8.0.230.0000.00717.44
8.0.220.0070.00017.20
8.0.210.0040.00417.07
8.0.200.0030.00317.41
8.0.190.0050.00317.39
8.0.180.0050.00317.36
8.0.170.0040.00417.12
8.0.160.0000.00717.34
8.0.150.0000.00717.34
8.0.140.0030.00717.25
8.0.130.0030.00313.67
8.0.120.0000.00817.18
8.0.110.0000.00717.17
8.0.100.0000.00817.31
8.0.90.0000.00817.16
8.0.80.0000.01617.30
8.0.70.0000.00817.42
8.0.60.0030.00617.27
8.0.50.0040.00417.22
8.0.30.0130.00617.53
8.0.20.0130.01017.40
8.0.10.0040.00417.34
8.0.00.0080.01017.27
7.4.330.0030.00317.11
7.4.320.0030.00316.95
7.4.300.0060.00016.90
7.4.290.0030.00316.75
7.4.280.0070.00416.95
7.4.270.0000.00716.83
7.4.260.0070.00017.06
7.4.250.0000.00716.85
7.4.240.0030.00516.95
7.4.230.0000.00716.86
7.4.220.0160.00316.88
7.4.210.0070.00717.05
7.4.200.0030.00317.13
7.4.160.0080.00816.76
7.4.150.0210.00017.40
7.4.140.0080.01117.86
7.4.130.0080.01016.84
7.4.120.0110.00816.81
7.4.110.0060.01316.89
7.4.100.0000.02216.89
7.4.90.0150.00416.94
7.4.80.0060.01219.39
7.4.70.0140.00716.95
7.4.60.0060.01916.86
7.4.50.0000.01316.68
7.4.40.0060.01216.95
7.4.30.0100.00716.90
7.4.00.0000.01515.44
7.3.330.0000.00713.67
7.3.320.0040.00413.73
7.3.310.0000.00716.84
7.3.300.0000.00716.71
7.3.290.0040.00416.74
7.3.280.0080.01016.74
7.3.270.0030.01617.40
7.3.260.0130.01016.98
7.3.250.0100.00816.82
7.3.240.0130.00516.85
7.3.230.0100.01016.94
7.3.210.0110.00616.83
7.3.200.0100.00716.67
7.3.190.0140.00716.95
7.3.180.0030.01917.05
7.3.170.0070.01116.78
7.3.160.0090.00816.82
7.2.330.0120.00616.80
7.2.320.0130.01017.05
7.2.310.0070.01817.07
7.2.300.0000.01816.93
7.2.290.0150.00317.02
7.2.110.0070.01116.64
7.2.60.0040.01116.86
7.2.00.0040.00419.63
7.1.200.0100.00315.77
7.1.100.0130.00318.59
7.1.70.0000.01717.08
7.1.60.0090.01619.52
7.1.50.0100.01316.97
7.1.00.0030.08022.66
7.0.200.0080.00016.95
7.0.60.0230.07019.96
7.0.50.0000.08718.11
7.0.40.0130.07320.28
7.0.30.0230.05320.24
7.0.20.0170.04020.48
7.0.10.0030.04320.49
7.0.00.0070.09020.33
5.6.280.0030.03321.27
5.6.210.0100.07720.64
5.6.200.0070.03718.38
5.6.190.0200.07020.86
5.6.180.0370.05020.86
5.6.170.0230.08020.59
5.6.160.0030.04720.59
5.6.150.0070.07318.29
5.6.140.0070.04718.32
5.6.130.0070.08718.36
5.6.120.0070.08021.27
5.6.110.0130.08021.27
5.6.100.0030.06321.16
5.6.90.0100.07321.27
5.6.80.0030.06020.67
5.5.350.0130.06720.51
5.5.340.0070.08018.18
5.5.330.0130.08020.62
5.5.320.0300.03720.59
5.5.310.0230.05320.52
5.5.300.0030.07318.10
5.5.290.0070.03718.12
5.5.280.0070.08321.06
5.5.270.0070.08320.91
5.5.260.0100.07721.09
5.5.250.0130.05720.96
5.5.240.0300.07720.56

preferences:
39.52 ms | 400 KiB | 5 Q