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 $elems[0]->Target, PHP_EOL; echo get_class($elems[0]->Target[0]), PHP_EOL; echo $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.40.0120.00319.12
8.3.30.0110.00319.09
8.3.20.0040.00420.66
8.3.10.0050.00223.95
8.3.00.0050.00319.91
8.2.170.0070.00722.96
8.2.160.0070.00720.90
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0000.00821.53
8.2.110.0030.00722.60
8.2.100.0040.00718.54
8.2.90.0000.00819.50
8.2.80.0040.00418.13
8.2.70.0090.00017.88
8.2.60.0030.00618.30
8.2.50.0040.00418.07
8.2.40.0000.00822.82
8.2.30.0080.00020.89
8.2.20.0060.00318.13
8.2.10.0060.00318.47
8.2.00.0070.00018.39
8.1.270.0110.00420.66
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0080.00024.09
8.1.230.0060.00619.48
8.1.220.0030.00618.03
8.1.210.0060.00318.77
8.1.200.0060.00317.60
8.1.190.0040.00417.49
8.1.180.0030.00618.10
8.1.170.0040.00418.87
8.1.160.0080.00020.91
8.1.150.0040.00419.04
8.1.140.0000.00819.89
8.1.130.0070.00017.93
8.1.120.0070.00017.78
8.1.110.0000.00817.77
8.1.100.0000.00717.68
8.1.90.0000.00717.80
8.1.80.0030.00517.84
8.1.70.0000.00717.50
8.1.60.0040.00417.93
8.1.50.0030.00617.71
8.1.40.0040.00417.77
8.1.30.0040.00418.12
8.1.20.0040.00418.02
8.1.10.0030.00617.77
8.1.00.0000.00817.74
8.0.300.0050.00218.77
8.0.290.0040.00417.00
8.0.280.0000.00718.64
8.0.270.0030.00317.56
8.0.260.0030.00317.50
8.0.250.0040.00417.25
8.0.240.0030.00317.42
8.0.230.0030.00317.37
8.0.220.0040.00417.27
8.0.210.0050.00317.29
8.0.200.0030.00317.17
8.0.190.0030.00617.18
8.0.180.0040.00417.34
8.0.170.0040.00417.18
8.0.160.0040.00417.12
8.0.150.0050.00217.28
8.0.140.0070.00317.25
8.0.130.0050.00013.61
8.0.120.0000.00817.27
8.0.110.0050.00317.24
8.0.100.0040.00417.19
8.0.90.0040.00417.21
8.0.80.0100.00717.15
8.0.70.0040.00417.16
8.0.60.0040.00417.14
8.0.50.0080.00017.07
8.0.30.0100.00717.42
8.0.20.0070.01317.40
8.0.10.0040.00417.44
8.0.00.0100.00817.11
7.4.330.0050.00017.03
7.4.320.0030.00317.04
7.4.300.0000.00716.85
7.4.290.0000.00716.86
7.4.280.0030.00716.80
7.4.270.0030.00616.89
7.4.260.0030.00313.55
7.4.250.0000.00716.78
7.4.240.0020.00616.80
7.4.230.0080.00017.09
7.4.220.0140.00316.86
7.4.210.0080.00716.97
7.4.200.0000.00716.76
7.4.160.0070.01017.04
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0060.01116.97
7.4.120.0100.00716.92
7.4.110.0150.00616.94
7.4.100.0120.00616.75
7.4.90.0070.01016.84
7.4.80.0090.00919.39
7.4.70.0070.01116.77
7.4.60.0030.01316.95
7.4.50.0070.01016.85
7.4.40.0110.00716.99
7.4.30.0060.01216.84
7.4.00.0070.00715.31
7.3.330.0030.00313.32
7.3.320.0000.00813.65
7.3.310.0020.00516.49
7.3.300.0000.00716.71
7.3.290.0030.00316.77
7.3.280.0100.00616.74
7.3.270.0150.00417.40
7.3.260.0140.00416.85
7.3.250.0090.00916.81
7.3.240.0130.00416.66
7.3.230.0070.01116.89
7.3.210.0060.01217.07
7.3.200.0280.00616.56
7.3.190.0000.01716.99
7.3.180.0060.01016.79
7.3.170.0030.01416.77
7.3.160.0060.00916.96
7.2.330.0150.00317.15
7.2.320.0120.00817.08
7.2.310.0030.01517.14
7.2.300.0150.00717.04
7.2.290.0050.01117.03
7.2.60.0090.00616.80
7.2.00.0040.01119.71
7.1.200.0070.00716.23
7.1.100.0090.01217.91
7.1.70.0060.00617.17
7.1.60.0100.01419.52
7.1.50.0130.00717.18
7.1.00.0000.08022.79
7.0.200.0000.00816.77
7.0.60.0130.06320.07
7.0.50.0100.04018.11
7.0.40.0070.05320.49
7.0.30.0130.05020.36
7.0.20.0170.04020.36
7.0.10.0030.04320.36
7.0.00.0130.08320.38
5.6.280.0030.03321.14
5.6.210.0070.04720.89
5.6.200.0000.04318.34
5.6.190.0070.08720.63
5.6.180.0370.06720.72
5.6.170.0130.04720.77
5.6.160.0170.07720.63
5.6.150.0100.07718.32
5.6.140.0070.08718.39
5.6.130.0070.04718.26
5.6.120.0000.04721.17
5.6.110.0030.07021.28
5.6.100.0070.08321.20
5.6.90.0130.07021.27
5.6.80.0000.04720.70
5.5.350.0170.06720.53
5.5.340.0100.07018.20
5.5.330.0130.03720.34
5.5.320.0270.04020.45
5.5.310.0200.06720.66
5.5.300.0030.04718.12
5.5.290.0000.04318.10
5.5.280.0030.07320.81
5.5.270.0100.05320.95
5.5.260.0100.09020.92
5.5.250.0230.07020.92
5.5.240.0270.07320.56

preferences:
52.76 ms | 400 KiB | 5 Q