3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contentData = '<texts><text_0_0><![CDATA[1]]></text_0_0><text_3_0><![CDATA[4]]></text_3_0><text_1_0><![CDATA[2]]></text_1_0><text_4_0><![CDATA[5]]></text_4_0><text_2_0><![CDATA[3]]></text_2_0></texts><medias><image_1_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699789387.jpg]]></image_1_0><image_0_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699802460.jpg]]></image_0_0><image_3_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699734945.jpg]]></image_3_0><image_4_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699720579.jpg]]></image_4_0><image_2_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699775071.jpg]]></image_2_0></medias>'; $dom = new DOMDocument(); $dom->loadXML('<content>'.$contentData.'</content>'); $dom = $dom->getElementsByTagName("medias"); foreach ($dom as $image=>$value) { $fileName = substr(strrchr($image->nodeValue, "/"), 1); echo '----------------------'; echo $image->nodeValue, PHP_EOL; //echo $value, PHP_EOL; //unlink($path.$fileName); }

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.0110.00717.00
8.3.60.0140.00016.88
8.3.50.0120.00717.64
8.3.40.0090.00619.00
8.3.30.0150.00019.00
8.3.20.0050.00318.77
8.3.10.0050.00318.90
8.3.00.0040.00419.51
8.2.180.0030.01719.04
8.2.170.0110.00422.96
8.2.160.0090.00620.51
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00319.52
8.2.110.0070.00321.11
8.2.100.0040.00818.03
8.2.90.0060.00319.55
8.2.80.0020.00519.58
8.2.70.0070.00417.75
8.2.60.0000.00818.05
8.2.50.0060.00318.07
8.2.40.0000.00818.17
8.2.30.0040.00418.24
8.2.20.0030.00618.02
8.2.10.0000.00717.91
8.2.00.0050.00517.91
8.1.280.0140.00725.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.72
8.1.230.0070.00421.09
8.1.220.0090.00018.04
8.1.210.0050.00519.16
8.1.200.0060.00317.38
8.1.190.0050.00317.78
8.1.180.0000.00818.10
8.1.170.0040.00420.79
8.1.160.0040.00419.14
8.1.150.0050.00318.91
8.1.140.0000.00817.63
8.1.130.0040.00418.05
8.1.120.0030.00517.77
8.1.110.0040.00417.60
8.1.100.0040.00417.55
8.1.90.0040.00417.63
8.1.80.0000.00817.70
8.1.70.0060.00517.67
8.1.60.0050.00317.79
8.1.50.0040.00417.73
8.1.40.0050.00317.63
8.1.30.0000.00917.75
8.1.20.0040.00417.84
8.1.10.0000.00717.82
8.1.00.0040.00417.79
8.0.300.0040.00420.18
8.0.290.0070.00016.88
8.0.280.0070.00018.57
8.0.270.0000.00717.45
8.0.260.0030.00317.01
8.0.250.0040.00417.11
8.0.240.0040.00417.31
8.0.230.0030.00317.22
8.0.220.0030.00317.09
8.0.210.0000.00717.06
8.0.200.0000.00717.15
8.0.190.0050.00317.24
8.0.180.0040.00417.25
8.0.170.0110.00017.20
8.0.160.0040.00417.29
8.0.150.0000.00817.16
8.0.140.0000.00917.13
8.0.130.0030.00313.64
8.0.120.0080.00017.16
8.0.110.0040.00417.13
8.0.100.0060.00317.20
8.0.90.0080.00017.21
8.0.80.0100.00717.23
8.0.70.0030.00517.13
8.0.60.0050.00317.23
8.0.50.0070.00017.09
8.0.30.0060.01317.08
8.0.20.0080.01217.13
8.0.10.0040.00417.34
8.0.00.0150.00516.99
7.4.330.0000.00513.21
7.4.320.0040.00416.81
7.4.300.0060.00016.82
7.4.290.0060.00316.58
7.4.280.0040.00416.82
7.4.270.0000.00716.85
7.4.260.0000.00613.42
7.4.250.0030.00616.72
7.4.240.0040.00316.75
7.4.230.0070.00016.66
7.4.220.0060.01216.75
7.4.210.0060.01116.79
7.4.200.0040.00416.70
7.4.190.0000.00716.86
7.4.160.0100.00616.71
7.4.150.0160.00616.62
7.4.140.0050.01516.79
7.4.130.0100.00716.76
7.4.120.0130.00516.71
7.4.110.0130.00616.69
7.4.100.0140.00416.78
7.4.90.0120.00616.58
7.4.80.0070.01319.39
7.4.70.0070.01016.60
7.4.60.0120.00616.86
7.4.50.0060.00616.78
7.4.40.0130.00316.37
7.4.30.0110.00516.58
7.4.00.0120.00715.19
7.3.330.0040.00413.48
7.3.320.0030.00413.37
7.3.310.0000.00916.57
7.3.300.0000.00716.63
7.3.290.0110.00416.49
7.3.280.0050.01016.62
7.3.270.0240.00316.78
7.3.260.0090.00916.57
7.3.250.0110.01016.69
7.3.240.0100.00716.87
7.3.230.0090.01316.71
7.3.210.0110.00716.89
7.3.200.0070.01716.70
7.3.190.0140.00816.70
7.3.180.0070.01016.55
7.3.170.0130.00316.43
7.3.160.0060.01016.68
7.3.120.0070.00814.92
7.3.110.0080.00814.82
7.3.100.0060.00815.06
7.3.90.0020.01415.14
7.3.80.0080.00514.93
7.3.70.0070.00314.99
7.3.60.0070.00714.99
7.3.50.0100.00514.97
7.3.40.0030.01014.97
7.3.30.0050.00614.86
7.3.20.0080.00616.93
7.3.10.0090.00516.74
7.3.00.0120.00216.68
7.2.330.0130.00416.62
7.2.320.0070.01116.93
7.2.310.0090.00916.97
7.2.300.0070.01016.93
7.2.290.0110.00816.73
7.2.250.0050.01315.17
7.2.240.0070.01315.34
7.2.230.0090.00515.40
7.2.220.0020.01015.21
7.2.210.0050.00915.26
7.2.200.0030.01015.17
7.2.190.0030.00915.13
7.2.180.0080.00615.16
7.2.170.0070.00915.12
7.2.130.0150.00416.97
7.2.120.0060.01216.81
7.2.110.0140.01016.78
7.2.100.0100.00716.82
7.2.90.0070.01117.22
7.2.80.0040.01616.81
7.2.70.0100.01017.19
7.2.60.0120.00816.82
7.2.50.0070.01116.96
7.2.40.0040.01117.31
7.2.30.0060.00916.95
7.2.20.0070.01017.07
7.2.10.0170.00017.05
7.2.00.0070.00318.24
7.1.330.0080.00716.07
7.1.320.0050.00615.84
7.1.310.0020.01215.94
7.1.300.0050.00915.81
7.1.290.0020.01015.96
7.1.280.0030.00815.86
7.1.270.0040.00915.95
7.1.260.0070.00915.88
7.1.250.0160.00815.75
7.1.100.0000.01218.20
7.1.70.0000.00717.35
7.1.60.0150.00919.40
7.1.50.0040.01517.16
7.1.00.0070.07322.51
7.0.200.0040.00716.75
7.0.140.0070.07022.21
7.0.120.0000.04022.13
7.0.60.0170.07720.13
7.0.50.0030.08717.99
7.0.40.0130.08720.27
7.0.30.0570.06320.32
7.0.20.0230.03720.51
7.0.10.0170.05320.28
7.0.00.0070.03720.24
5.6.280.0070.06321.00
5.6.210.0000.04320.55
5.6.200.0000.04718.22
5.6.190.0100.07320.46
5.6.180.3800.04320.48
5.6.170.0370.05020.66
5.6.160.0130.04020.70
5.6.150.0030.07718.26
5.6.140.0070.07318.20
5.6.130.0130.03018.23
5.6.120.0030.08321.20
5.6.110.0070.05321.02
5.6.100.0130.06321.03
5.6.90.0100.08020.98
5.6.80.0030.08320.41
5.5.350.0270.04320.57
5.5.340.0030.07318.06
5.5.330.0100.04720.54
5.5.320.3600.04020.30
5.5.310.0300.06020.46
5.5.300.0100.06718.06
5.5.290.0030.05718.06
5.5.280.0030.04320.88
5.5.270.0130.03320.77
5.5.260.0070.08720.84
5.5.250.0030.04320.69
5.5.240.0230.04320.30
5.4.450.0070.06719.50
5.4.440.0000.04319.48
5.4.430.0070.06319.31
5.4.420.0030.04719.55
5.4.410.0130.05319.41
5.4.400.0070.04019.29
5.4.390.0030.05718.86
5.4.380.0000.04319.34
5.4.370.0070.03718.89
5.4.360.0070.06719.19
5.4.350.0100.04319.32
5.4.340.0130.06019.22
5.4.320.0070.05719.15
5.4.310.0130.07019.19
5.4.300.0100.03319.27
5.4.290.0070.06319.30
5.4.280.0070.04719.32
5.4.270.0070.03319.28
5.4.260.0070.03719.21
5.4.250.0100.06319.31
5.4.240.0100.04319.23
5.4.230.0000.05718.89
5.4.220.0100.06318.85
5.4.210.0070.04019.30
5.4.200.0100.03319.07
5.4.190.0070.07719.25
5.4.180.0070.07319.14
5.4.170.0070.07318.97
5.4.160.0000.05019.04
5.4.150.0030.07719.04
5.4.140.0030.04716.33
5.4.130.0030.07316.60
5.4.120.0070.07316.43
5.4.110.0030.06016.53
5.4.100.0100.07016.49
5.4.90.0030.05716.59
5.4.80.0000.04716.34
5.4.70.0070.05316.38
5.4.60.0130.05016.71
5.4.50.0070.03316.46
5.4.40.0000.06316.38
5.4.30.0070.04316.50
5.4.20.0070.06316.39
5.4.10.0070.06716.38
5.4.00.0070.05715.91
5.3.290.0100.04014.76
5.3.280.0000.04314.64
5.3.270.0000.04314.63
5.3.260.0030.08014.76
5.3.250.0070.07014.77
5.3.240.0100.06714.56
5.3.230.0070.07314.72
5.3.220.0030.05014.69
5.3.210.0070.07714.58
5.3.200.0130.03714.69
5.3.190.0070.05014.69
5.3.180.0070.03714.63
5.3.170.0170.06314.64
5.3.160.0000.07014.64
5.3.150.0070.04714.59
5.3.140.0100.04314.55
5.3.130.0070.04014.66
5.3.120.0130.06014.63
5.3.110.0100.04014.57
5.3.100.0000.04314.07
5.3.90.0030.03714.14
5.3.80.0070.07314.14
5.3.70.0070.07314.10
5.3.60.0070.04314.07
5.3.50.0100.04013.96
5.3.40.0100.04013.98
5.3.30.0100.05313.83
5.3.20.0070.03313.83
5.3.10.0070.05013.68
5.3.00.0030.07013.64
5.2.170.0030.05711.11
5.2.160.0000.05711.08
5.2.150.0100.03711.20
5.2.140.0100.05011.29
5.2.130.0070.06011.23
5.2.120.0030.05711.06
5.2.110.0070.05711.18
5.2.100.0030.05011.17
5.2.90.0070.06011.05
5.2.80.0030.04311.24
5.2.70.0030.04311.21
5.2.60.0000.06711.13
5.2.50.0000.04011.10
5.2.40.0000.04011.12
5.2.30.0130.04311.03
5.2.20.0000.05310.88
5.2.10.0100.04311.08
5.2.00.0070.03710.84
5.1.60.0000.0309.92
5.1.50.0100.02010.13
5.1.40.0070.0509.89
5.1.30.0070.02710.39
5.1.20.0100.05010.37
5.1.10.0100.04310.12
5.1.00.0070.04310.19
5.0.50.0030.0238.71
5.0.40.0000.0408.57
5.0.30.0030.0708.43
5.0.20.0030.0338.43
5.0.10.0000.0238.43
5.0.00.0000.0678.43
4.4.90.0030.0178.43
4.4.80.0030.0178.43
4.4.70.0030.0178.43
4.4.60.0030.0178.43
4.4.50.0130.0078.43
4.4.40.0000.0278.43
4.4.30.0030.0238.43
4.4.20.0000.0338.43
4.4.10.0030.0338.43
4.4.00.0000.0408.43
4.3.110.0030.0308.43
4.3.100.0000.0308.43
4.3.90.0030.0208.43
4.3.80.0030.0478.43
4.3.70.0000.0238.43
4.3.60.0070.0138.43
4.3.50.0000.0338.43
4.3.40.0030.0508.43
4.3.30.0000.0378.43
4.3.20.0000.0208.43
4.3.10.0030.0138.43
4.3.00.0000.0178.43

preferences:
72.03 ms | 401 KiB | 5 Q