3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * How to get SVG tag content with PHP * @link http://stackoverflow.com/a/16234458/367456 */ $string = <<<BUFFER <?xml version="1.0" encoding="utf-8"?> <!-- comment --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="202.5px" height="226.084px" viewBox="0 0 202.5 226.084" enable-background="new 0 0 202.5 226.084" xml:space="preserve"> <g> <path d="M0,13.628c47.7940,13.628z"/> <polygon points="108.48,207.874 145.506,196.948 145.506,204.536 108.48,214.854 "/> <path fill="none" stroke="#000000" d="M114.55,223.959"/> </g> </svg> BUFFER; $xml = simplexml_load_string($string); $xml->registerXPathNamespace('svg', 'http://www.w3.org/2000/svg'); $xml->xpath('/path')[0]->asXML('php://output');

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.00718.79
8.3.50.0070.00822.11
8.3.40.0070.00719.06
8.3.30.0060.00918.96
8.3.20.0040.00419.28
8.3.10.0040.00421.42
8.3.00.0040.00423.98
8.2.180.0070.00718.79
8.2.170.0170.00322.96
8.2.160.0170.00320.68
8.2.150.0030.01324.18
8.2.140.0040.01324.66
8.2.130.0060.00326.16
8.2.120.0030.00521.68
8.2.110.0030.00722.66
8.2.100.0120.00018.08
8.2.90.0000.00719.46
8.2.80.0070.00019.84
8.2.70.0080.00017.88
8.2.60.0000.00818.30
8.2.50.0060.00318.07
8.2.40.0040.00418.41
8.2.30.0000.00819.78
8.2.20.0000.00818.07
8.2.10.0080.00018.14
8.2.00.0070.00318.04
8.1.280.0030.01325.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0070.00720.96
8.1.230.0040.00721.21
8.1.220.0040.00418.77
8.1.210.0040.00419.29
8.1.200.0060.00317.60
8.1.190.0000.00717.91
8.1.180.0050.00318.10
8.1.170.0050.00319.03
8.1.160.0050.00319.16
8.1.150.0000.00819.01
8.1.140.0060.00317.73
8.1.130.0050.00218.23
8.1.120.0000.00717.77
8.1.110.0050.00217.77
8.1.100.0020.00517.84
8.1.90.0000.00717.57
8.1.80.0030.00417.67
8.1.70.0000.00817.60
8.1.60.0000.00817.93
8.1.50.0030.00617.74
8.1.40.0030.00617.94
8.1.30.0000.00717.88
8.1.20.0030.00617.91
8.1.10.0080.00018.02
8.1.00.0000.00917.97
8.0.300.0030.00520.14
8.0.290.0040.00417.43
8.0.280.0000.00718.72
8.0.270.0030.00317.54
8.0.260.0000.00717.12
8.0.250.0080.00017.41
8.0.240.0040.00417.32
8.0.230.0000.00717.38
8.0.220.0030.00717.32
8.0.210.0020.00517.10
8.0.200.0030.00317.39
8.0.190.0000.00817.40
8.0.180.0000.00817.24
8.0.170.0070.00017.40
8.0.160.0040.00417.14
8.0.150.0030.00317.16
8.0.140.0050.00217.30
8.0.130.0000.00513.77
8.0.120.0030.00717.18
8.0.110.0000.00917.34
8.0.100.0000.00717.29
8.0.90.0020.00517.08
8.0.80.0030.01217.26
8.0.70.0020.00517.14
8.0.60.0040.00417.21
8.0.50.0030.00517.25
8.0.30.0080.01617.49
8.0.20.0050.01317.54
8.0.10.0050.00317.46
8.0.00.0140.00817.15
7.4.330.0050.00017.09
7.4.320.0000.00616.88
7.4.300.0070.00016.96
7.4.290.0030.00316.94
7.4.280.0000.00917.09
7.4.270.0000.00716.86
7.4.260.0030.00313.55
7.4.250.0030.00516.89
7.4.240.0000.00717.01
7.4.230.0030.00316.92
7.4.220.0040.01516.97
7.4.210.0080.00716.98
7.4.200.0040.00416.86
7.4.190.0000.00716.80
7.4.160.0130.00316.87
7.4.150.0150.00617.40
7.4.140.0060.01417.86
7.4.130.0090.00916.87
7.4.120.0100.00716.84
7.4.110.0000.01616.75
7.4.100.0140.00716.71
7.4.90.0060.01316.97
7.4.80.0090.00919.39
7.4.70.0030.01417.00
7.4.60.0090.00916.87
7.4.50.0040.00416.97
7.4.40.0070.01022.77
7.4.30.0070.01416.73
7.4.00.0060.00915.02
7.3.330.0030.00313.61
7.3.320.0050.00313.43
7.3.310.0000.00816.83
7.3.300.0000.00716.59
7.3.290.0080.01116.76
7.3.280.0110.00816.72
7.3.270.0100.00717.40
7.3.260.0140.01018.24
7.3.250.0080.00816.72
7.3.240.0160.00616.83
7.3.230.0090.01017.10
7.3.210.0100.00616.63
7.3.200.0070.01019.39
7.3.190.0090.00916.83
7.3.180.0110.00616.64
7.3.170.0090.00916.99
7.3.160.0080.00816.73
7.3.120.0040.01114.98
7.3.10.0000.01016.48
7.3.00.0040.01116.76
7.2.330.0090.00916.83
7.2.320.0130.01016.56
7.2.310.0070.01416.89
7.2.300.0070.01116.74
7.2.290.0150.00416.79
7.2.130.0040.00716.92
7.2.120.0070.00717.14
7.2.110.0070.00316.86
7.2.100.0030.01016.94
7.2.90.0000.01016.94
7.2.80.0100.00016.95
7.2.70.0040.00717.32
7.2.60.0050.00817.04
7.2.50.0030.01216.86
7.2.40.0070.00717.10
7.2.30.0000.01516.95
7.2.20.0070.00316.88
7.2.10.0100.00017.27
7.2.00.0040.00918.17
7.1.250.0030.01015.71
7.1.200.0000.00815.96
7.1.70.0000.00817.48
7.1.60.0030.01017.18
7.1.50.0260.01935.09
7.1.00.0000.04322.57
7.0.200.0100.00716.81
7.0.140.0130.06322.26
7.0.100.0130.06320.28
7.0.90.0070.05020.30
7.0.80.0530.08020.07
7.0.70.0500.07020.29
7.0.60.0600.04320.21
7.0.50.0270.08020.51
7.0.40.0000.04720.25
7.0.30.0100.04720.22
7.0.20.0070.05720.29
7.0.10.0170.06720.32
7.0.00.0170.04720.22
5.6.280.0000.06021.21
5.6.250.0270.06020.93
5.6.240.0070.06320.72
5.6.230.0030.09320.96
5.6.220.0100.07720.67
5.6.210.0100.04720.79
5.6.200.0030.09321.27
5.6.190.0030.05021.29
5.6.180.0100.07321.31
5.6.170.0030.04321.13
5.6.160.0070.04021.17
5.6.150.0170.03021.18
5.6.140.0000.05321.17
5.6.130.0030.04321.30
5.6.120.0100.03721.23
5.6.110.0030.04021.25
5.6.100.0070.04021.34
5.6.90.0070.04021.28
5.6.80.0000.05020.59
5.6.70.0070.05720.68
5.6.60.0100.07020.58
5.6.50.0200.06720.63
5.6.40.0030.04020.65
5.6.30.0000.05020.63
5.6.20.0030.08020.56
5.6.10.0000.06320.64
5.6.00.0030.04020.61
5.5.380.0000.07720.69
5.5.370.0070.08020.68
5.5.360.0130.08320.59
5.5.350.0170.06320.60
5.5.340.0000.08721.06
5.5.330.0030.08320.95
5.5.320.0070.07021.09
5.5.310.0100.05021.01
5.5.300.0130.03320.92
5.5.290.0030.04721.09
5.5.280.0000.04720.92
5.5.270.0030.04321.00
5.5.260.0070.04020.94
5.5.250.0070.04020.89
5.5.240.0030.03720.31
5.5.230.0070.07320.34
5.5.220.0130.02720.45
5.5.210.0070.04020.34
5.5.200.0070.06320.34
5.5.190.0070.04020.45
5.5.180.0000.04320.46
5.5.160.0130.04020.47
5.5.150.0030.04020.27
5.5.140.0070.03720.44
5.5.130.0030.04020.40
5.5.120.0030.04320.43
5.5.110.0000.04320.45
5.5.100.0000.04720.29
5.5.90.0070.03720.25
5.5.80.0100.03320.29
5.5.70.0070.03720.35
5.5.60.0070.04720.33
5.5.50.0130.03720.24
5.5.40.0030.03720.29
5.5.30.0070.03720.32
5.5.20.0100.03720.34
5.5.10.0030.04020.26
5.5.00.0070.03720.26
5.4.450.0000.04319.77
5.4.440.0070.04019.51
5.4.430.0030.04019.35
5.4.420.0100.04019.32
5.4.410.0030.04019.29
5.4.400.0030.05719.26
5.4.390.0030.06319.25
5.4.380.0070.07319.02
5.4.370.0000.04319.27
5.4.360.0170.03719.19
5.4.350.0130.04319.27
5.4.340.0100.03719.24
5.4.320.0070.03719.00
5.4.310.0070.03319.25
5.4.300.0100.03019.02
5.4.290.0000.04019.27
5.4.280.0130.03019.18
5.4.270.0030.03719.24
5.4.260.0070.03319.24
5.4.250.0070.03319.26
5.4.240.0030.03719.18
5.4.230.0100.03319.25
5.4.220.0130.03019.25
5.4.210.0070.03719.29
5.4.200.0070.03319.02
5.4.190.0000.03719.24
5.4.180.0000.04019.02
5.4.170.0030.04019.25
5.4.160.0130.03019.40
5.4.150.0030.04019.26
5.4.140.0030.03716.60
5.4.130.0030.03716.55
5.4.120.0000.04016.57
5.4.110.0100.09316.61
5.4.100.0070.06316.41
5.4.90.0070.07016.44
5.4.80.0070.06016.57
5.4.70.0070.03316.58
5.4.60.0030.03716.42
5.4.50.0000.04716.48
5.4.40.0070.06716.61
5.4.30.0030.07016.66
5.4.20.0000.05316.48
5.4.10.0030.07716.67
5.4.00.0000.04315.93
5.3.290.0170.02714.52
5.3.280.0070.03314.57
5.3.270.0070.03314.57
5.3.260.0100.03314.46
5.3.250.0000.04014.44
5.3.240.0030.03314.47
5.3.230.0000.04014.59
5.3.220.0000.05014.41
5.3.210.0170.04314.55
5.3.200.0130.06714.53
5.3.190.0170.06714.57
5.3.180.0070.04314.52
5.3.170.0070.04714.53
5.3.160.0070.04314.52
5.3.150.0100.06714.50
5.3.140.0070.07314.43
5.3.130.0130.06014.46
5.3.120.0130.07314.54
5.3.110.0030.04014.41
5.3.100.0070.07314.03
5.3.90.0030.05713.93
5.3.80.0070.03714.02
5.3.70.0000.05714.01
5.3.60.0070.06013.86
5.3.50.0070.06313.97
5.3.40.0100.06313.89
5.3.30.0030.07313.89
5.3.20.0100.06713.69
5.3.10.0000.03713.42
5.3.00.0070.03013.64
5.2.170.0100.05711.21
5.2.160.0070.05710.99
5.2.150.0000.06711.01
5.2.140.0070.05311.18
5.2.130.0070.04311.10
5.2.120.0100.05011.05
5.2.110.0070.05011.14
5.2.100.0100.04011.11
5.2.90.0000.04711.05
5.2.80.0000.03311.05
5.2.70.0070.05011.13
5.2.60.0030.05010.90
5.2.50.0000.05711.09
5.2.40.0130.03310.90
5.2.30.0070.06311.00
5.2.20.0030.06010.99
5.2.10.0130.04010.90
5.2.00.0030.03010.90
5.1.60.0030.05310.90
5.1.50.0070.04010.90
5.1.40.0030.05710.90
5.1.30.0100.05710.90
5.1.20.0100.04710.90
5.1.10.0070.03310.90
5.1.00.0070.05010.90
5.0.50.0000.04710.90
5.0.40.0030.03310.90
5.0.30.0030.04010.90
5.0.20.0100.03710.90
5.0.10.0030.03710.90
5.0.00.0030.03310.90
4.4.90.0030.03710.90
4.4.80.0030.03310.90
4.4.70.0030.03310.90
4.4.60.0030.03310.90
4.4.50.0030.03310.90
4.4.40.0030.05310.90
4.4.30.0030.03310.90
4.4.20.0070.03310.90
4.4.10.0030.02310.90
4.4.00.0000.04710.90
4.3.110.0030.02710.90
4.3.100.0070.03010.90
4.3.90.0030.02710.90
4.3.80.0000.03710.90
4.3.70.0100.03010.90
4.3.60.0070.03010.90
4.3.50.0030.03710.90
4.3.40.0030.03710.90
4.3.30.0030.03310.90
4.3.20.0000.04010.90
4.3.10.0030.03010.90
4.3.00.0000.02310.90

preferences:
56.84 ms | 401 KiB | 5 Q