3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <image id="my-image" xlink:href="http://example.com/image.png" /> </svg> '); $xml->registerXPathNamespace('svg', 'http://www.w3.org/2000/svg'); $xml->registerXPathNamespace('xlink', 'http://www.w3.org/1999/xlink'); $images = $xml->xpath('//svg:image/@xlink:href'); foreach ($images as $image) { var_dump($image); }

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.5.10.0130.00720.50
8.5.00.0070.01320.46
8.4.150.0020.00014.05
8.4.140.0130.01017.50
8.4.130.0150.00618.84
8.4.120.0120.00820.93
8.4.110.0130.00718.14
8.4.100.0110.01017.97
8.4.90.0100.01021.09
8.4.80.0100.00919.09
8.4.70.0030.00519.23
8.4.60.0050.00419.24
8.4.50.0090.01322.64
8.4.40.0140.01118.85
8.4.30.0100.00717.80
8.4.20.0070.01418.06
8.4.10.0040.00417.80
8.3.280.0170.01018.73
8.3.270.0120.00816.82
8.3.260.0100.00916.74
8.3.250.0110.00819.46
8.3.240.0110.00716.90
8.3.230.0130.00516.82
8.3.220.0100.01019.46
8.3.210.0090.01018.57
8.3.200.0050.00316.95
8.3.190.0090.00917.42
8.3.180.0130.00818.83
8.3.170.0100.00717.70
8.3.160.0100.00720.96
8.3.150.0160.00319.10
8.3.140.0130.00316.82
8.3.130.0100.00618.89
8.3.120.0000.01019.17
8.3.110.0080.00020.94
8.3.100.0000.00824.06
8.3.90.0070.00026.77
8.3.80.0030.00718.80
8.3.70.0140.00717.13
8.3.60.0120.00918.80
8.3.50.0100.00822.04
8.3.40.0060.00919.13
8.3.30.0060.00918.96
8.3.20.0000.00720.76
8.3.10.0080.00022.33
8.3.00.0040.00819.38
8.2.290.0100.00916.85
8.2.280.0100.00918.49
8.2.270.0090.00918.59
8.2.260.0050.00321.37
8.2.250.0060.00317.05
8.2.240.0030.00617.72
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0100.01317.13
8.2.180.0140.00017.00
8.2.170.0090.00622.96
8.2.160.0030.01019.69
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0040.00421.16
8.2.110.0050.00522.70
8.2.100.0040.00818.22
8.2.90.0040.00419.54
8.2.80.0000.00918.00
8.2.70.0060.00317.86
8.2.60.0000.00818.18
8.2.50.0090.00018.10
8.2.40.0000.00920.75
8.2.30.0040.00419.58
8.2.20.0040.00417.92
8.2.10.0030.00518.54
8.2.00.0040.00418.22
8.1.330.0100.00916.24
8.1.320.0140.00718.29
8.1.310.0060.00917.14
8.1.300.0060.00319.89
8.1.290.0030.00618.88
8.1.280.0000.01525.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0070.00324.16
8.1.230.0040.00823.00
8.1.220.0040.00418.03
8.1.210.0030.00618.77
8.1.200.0090.00017.72
8.1.190.0040.00417.60
8.1.180.0000.00818.10
8.1.170.0000.00818.95
8.1.160.0040.00422.47
8.1.150.0050.00220.97
8.1.140.0030.00519.86
8.1.130.0040.00418.07
8.1.120.0070.00017.89
8.1.110.0080.00317.67
8.1.100.0000.00917.68
8.1.90.0040.00417.68
8.1.80.0050.00217.84
8.1.70.0030.00317.85
8.1.60.0050.00217.78
8.1.50.0040.00417.75
8.1.40.0040.00417.91
8.1.30.0090.00018.10
8.1.20.0050.00317.85
8.1.10.0000.00817.90
8.1.00.0050.00517.82
8.0.300.0040.00418.77
8.0.290.0070.00316.96
8.0.280.0000.00718.76
8.0.270.0040.00417.54
8.0.260.0000.00717.56
8.0.250.0000.00717.39
8.0.240.0000.00717.09
8.0.230.0040.00417.15
8.0.220.0000.00717.28
8.0.210.0060.00317.29
8.0.200.0040.00417.14
8.0.190.0040.00417.38
8.0.180.0040.00417.28
8.0.170.0070.00017.32
8.0.160.0020.00517.05
8.0.150.0030.00517.27
8.0.140.0090.00317.17
8.0.130.0030.00313.63
8.0.120.0000.00817.00
8.0.110.0050.00317.05
8.0.100.0030.00617.18
8.0.90.0050.00217.10
8.0.80.0120.00317.22
8.0.70.0070.00717.29
8.0.60.0100.00317.11
8.0.50.0070.00717.14
8.0.30.0040.01417.30
8.0.20.0100.00817.41
8.0.10.0070.00717.31
8.0.00.0140.00217.24
7.4.330.0050.00015.41
7.4.320.0000.00616.90
7.4.300.0070.00016.76
7.4.290.0080.00017.00
7.4.280.0060.00316.67
7.4.270.0000.00716.96
7.4.260.0000.00716.87
7.4.250.0030.00316.83
7.4.240.0040.00416.95
7.4.230.0000.00716.85
7.4.220.0090.00917.01
7.4.210.0100.00616.97
7.4.200.0100.00317.04
7.4.190.0070.00717.08
7.4.180.0090.00416.83
7.4.160.0080.01116.92
7.4.150.0040.01217.17
7.4.140.0110.00617.49
7.4.130.0080.00816.79
7.4.120.0090.00716.76
7.4.110.0070.00916.83
7.4.100.0120.00316.81
7.4.90.0080.00816.77
7.4.80.0060.00918.02
7.4.70.0070.00816.83
7.4.60.0030.01216.80
7.4.50.0030.01316.73
7.4.40.0080.00816.80
7.4.30.0090.00716.65
7.4.20.0040.01216.91
7.4.10.0040.01116.04
7.4.00.0040.01115.68
7.3.330.0000.00613.51
7.3.320.0000.00813.25
7.3.310.0000.00716.70
7.3.300.0030.00316.58
7.3.290.0110.00516.63
7.3.280.0120.00416.63
7.3.270.0090.00616.98
7.3.260.0140.00316.63
7.3.250.0090.00916.64
7.3.240.0120.00716.69
7.3.230.0090.00716.56
7.3.220.0090.00316.48
7.3.210.0050.01016.60
7.3.200.0070.01116.74
7.3.190.0150.00216.60
7.3.180.0020.01416.75
7.3.170.0120.00616.72
7.3.160.0060.01016.54
7.3.150.0080.00816.44
7.3.140.0110.00416.45
7.3.130.0060.01015.74
7.3.120.0060.01115.69
7.3.110.0060.00815.83
7.3.100.0050.00815.78
7.3.90.0060.00915.93
7.3.80.0050.00915.82
7.3.70.0060.00715.70
7.3.60.0080.00515.86
7.3.50.0090.00715.89
7.3.40.0060.00915.73
7.3.30.0050.01015.82
7.3.20.0080.00816.69
7.3.10.0080.00516.69
7.3.00.0130.00716.65
7.2.340.0170.00716.64
7.2.330.0180.00716.73
7.2.320.0090.01216.88
7.2.310.0200.00616.90
7.2.300.0140.00916.87
7.2.290.0100.01116.79
7.2.280.0150.01016.83
7.2.270.0160.00816.67
7.2.260.0090.01215.95
7.2.250.0100.01215.93
7.2.240.0110.01215.87
7.2.230.0080.01215.96
7.2.220.0150.00615.86
7.2.210.0110.01115.89
7.2.200.0100.00716.04
7.2.190.0100.00815.94
7.2.180.0070.01116.05
7.2.170.0070.01116.08
7.2.160.0130.00716.12
7.2.150.0160.01417.00
7.2.140.0170.00216.98
7.2.130.0190.00417.12
7.2.120.0070.01317.04
7.2.110.0150.00617.10
7.2.100.0130.00917.07
7.2.90.0110.01117.00
7.2.80.0080.01416.99
7.2.70.0100.01017.00
7.2.60.0130.00717.05
7.2.50.0130.00917.03
7.2.40.0090.01017.13
7.2.30.0200.01017.11
7.2.20.0120.00716.98
7.2.10.0050.01417.03
7.2.00.0160.00817.80
7.1.330.0020.01415.84
7.1.320.0080.00815.85
7.1.310.0130.00415.89
7.1.300.0210.00515.84
7.1.290.0090.00815.90
7.1.280.0110.00515.77
7.1.270.0050.01315.82
7.1.260.0100.00615.87
7.1.250.0110.00815.79
7.1.240.0110.01015.76
7.1.230.0070.01015.80
7.1.220.0120.00515.91
7.1.210.0110.00616.03
7.1.200.0120.00815.80
7.1.190.0100.01015.77
7.1.180.0090.01015.89
7.1.170.0100.00615.84
7.1.160.0090.00815.80
7.1.150.0060.01215.80
7.1.140.0150.00215.77
7.1.130.0070.00915.86
7.1.120.0120.00515.83
7.1.110.0100.00816.00
7.1.100.0110.00715.81
7.1.90.0230.01115.98
7.1.80.0200.00615.98
7.1.70.0100.00516.29
7.1.60.0060.00917.17
7.1.50.0120.00715.87
7.1.40.0090.00815.87
7.1.30.0120.00815.92
7.1.20.0080.00915.89
7.1.10.0210.00615.73
7.1.00.0090.02918.11
7.0.330.0090.00615.50
7.0.320.0090.00515.58
7.0.310.0100.00915.70
7.0.300.0110.00915.63
7.0.290.0130.00915.41
7.0.280.0120.00715.63
7.0.270.0140.00315.60
7.0.260.0110.00615.53
7.0.250.0080.01015.79
7.0.240.0100.00715.57
7.0.230.0060.01015.61
7.0.220.0130.01115.80
7.0.210.0120.00615.53
7.0.200.0200.00815.31
7.0.190.0110.00915.56
7.0.180.0120.00915.66
7.0.170.0120.00715.70
7.0.160.0230.00915.70
7.0.150.0140.00815.48
7.0.140.0100.00915.60
7.0.130.0120.01215.63
7.0.120.0070.01015.77
7.0.110.0130.00515.64
7.0.100.0110.00515.50
7.0.90.0080.00715.58
7.0.80.0110.02817.07
7.0.70.0120.02617.18
7.0.60.0400.02117.11
7.0.50.0120.02617.22
7.0.40.0190.01916.58
7.0.30.0140.02316.57
7.0.20.0160.02216.55
7.0.10.0170.02316.51
7.0.00.0100.02816.55
5.6.400.0090.00815.34
5.6.390.0080.00815.24
5.6.380.0110.00615.35
5.6.370.0090.01115.30
5.6.360.0130.00515.35
5.6.350.0040.01415.37
5.6.340.0100.00515.24
5.6.330.0120.00415.39
5.6.320.0120.00715.19
5.6.310.0120.00715.46
5.6.300.0110.00815.27
5.6.290.0130.00815.30
5.6.280.0100.00715.35
5.6.270.0080.00715.54
5.6.260.0110.00615.13
5.6.250.0110.00615.28
5.6.240.0070.01015.11
5.6.230.0120.02417.10
5.6.220.0070.02517.12
5.6.210.0110.02317.15
5.6.200.0110.02517.31
5.6.190.0130.02317.24
5.6.180.0100.02417.31
5.6.170.0070.02617.36
5.6.160.0080.03117.35
5.6.150.0090.03017.39
5.6.140.0140.02517.33
5.6.130.0130.02617.21
5.6.120.0110.02617.34
5.6.110.0110.02817.21
5.6.100.0100.02717.22
5.6.90.0100.02617.29
5.6.80.0170.02017.06
5.6.70.0150.02317.04
5.6.60.0150.02717.09
5.6.50.0120.02317.05
5.6.40.0130.02216.97
5.6.30.0060.02917.02
5.6.20.0130.02816.93
5.6.10.0110.02816.98
5.6.00.0040.02916.91
5.5.380.0090.00615.30
5.5.370.0100.02317.10
5.5.360.0100.02516.96
5.5.350.0160.02017.00
5.5.340.0210.02317.22
5.5.330.0090.02717.32
5.5.320.0110.02417.11
5.5.310.0070.03017.15
5.5.300.0150.02317.14
5.5.290.0150.02417.24
5.5.280.0140.02117.31
5.5.270.0120.02817.22
5.5.260.0100.02817.20
5.5.250.0100.02617.10
5.5.240.0080.02717.07
5.5.230.0120.02416.83
5.5.220.0130.02216.94
5.5.210.0140.02516.99
5.5.200.0160.02316.81
5.5.190.0130.02116.89
5.5.180.0110.02516.96
5.5.170.0140.00615.12
5.5.160.0080.02716.89
5.5.150.0140.02216.95
5.5.140.0100.02416.93
5.5.130.0100.02716.84
5.5.120.0080.02516.92
5.5.110.0190.01816.82
5.5.100.0170.01816.78
5.5.90.0070.02716.72
5.5.80.0090.02416.89
5.5.70.0120.02216.93
5.5.60.0080.02516.84
5.5.50.0090.02416.94
5.5.40.0090.02216.85
5.5.30.0080.02516.99
5.5.20.0120.02416.94
5.5.10.0120.02416.86
5.5.00.0090.02416.80

preferences:
171.05 ms | 403 KiB | 5 Q