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($contentData); $dom = $dom->getElementsByTagName("medias"); foreach ($dom as $image) { $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.60.0110.00718.61
8.3.50.0030.01421.09
8.3.40.0140.00018.77
8.3.30.0000.01420.54
8.3.20.0000.00820.86
8.3.10.0040.00421.21
8.3.00.0060.00322.71
8.2.180.0110.01116.88
8.2.170.0150.00622.96
8.2.160.0000.01320.60
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00021.30
8.2.110.0070.00419.52
8.2.100.0040.00818.09
8.2.90.0040.00419.52
8.2.80.0030.00618.18
8.2.70.0030.00617.75
8.2.60.0060.00318.05
8.2.50.0040.00418.07
8.2.40.0040.00418.47
8.2.30.0000.00719.62
8.2.20.0040.00417.85
8.2.10.0040.00418.02
8.2.00.0000.00717.95
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00724.08
8.1.230.0040.00721.24
8.1.220.0090.00018.77
8.1.210.0040.00719.23
8.1.200.0030.00717.48
8.1.190.0040.00417.77
8.1.180.0090.00018.10
8.1.170.0000.00818.86
8.1.160.0040.00419.17
8.1.150.0020.00518.80
8.1.140.0050.00317.71
8.1.130.0070.00018.08
8.1.120.0000.00717.59
8.1.110.0020.00517.56
8.1.100.0040.00417.79
8.1.90.0040.00417.71
8.1.80.0000.00717.75
8.1.70.0070.00017.64
8.1.60.0030.00617.75
8.1.50.0000.00717.79
8.1.40.0040.00417.65
8.1.30.0040.00417.90
8.1.20.0080.00017.80
8.1.10.0030.00517.89
8.1.00.0030.00517.84
8.0.300.0000.00720.07
8.0.290.0070.00017.43
8.0.280.0070.00018.64
8.0.270.0000.00717.50
8.0.260.0060.00016.98
8.0.250.0000.00717.24
8.0.240.0070.00417.19
8.0.230.0030.00317.23
8.0.220.0000.00817.16
8.0.210.0030.00317.25
8.0.200.0000.00717.22
8.0.190.0000.00717.27
8.0.180.0050.00317.25
8.0.170.0040.00417.20
8.0.160.0040.00417.02
8.0.150.0050.00217.06
8.0.140.0000.00717.09
8.0.130.0000.00713.70
8.0.120.0030.00617.03
8.0.110.0050.00317.02
8.0.100.0040.00417.24
8.0.90.0000.00717.03
8.0.80.0060.01017.17
8.0.70.0040.00417.10
8.0.60.0040.00417.18
8.0.50.0050.00217.12
8.0.30.0090.01117.42
8.0.20.0070.01317.40
8.0.10.0050.00217.28
8.0.00.0160.00716.99
7.4.330.0000.00517.04
7.4.320.0000.00716.85
7.4.300.0000.00716.85
7.4.290.0020.00516.85
7.4.280.0040.00416.75
7.4.270.0070.00016.73
7.4.260.0000.00513.57
7.4.250.0040.00416.63
7.4.240.0040.00316.88
7.4.230.0030.00416.88
7.4.220.0070.01016.75
7.4.210.0070.00816.78
7.4.200.0040.00416.79
7.4.190.0000.00716.93
7.4.160.0120.00316.61
7.4.150.0180.00917.40
7.4.140.0120.01017.86
7.4.130.0160.00616.74
7.4.120.0080.01016.81
7.4.110.0130.00416.78
7.4.100.0100.01316.85
7.4.90.0090.01016.65
7.4.80.0150.00719.39
7.4.70.0120.00416.66
7.4.60.0060.01016.63
7.4.50.0000.00816.79
7.4.40.0070.01022.77
7.4.30.0120.00616.77
7.4.00.0070.01015.15
7.3.330.0030.00313.21
7.3.320.0030.00313.50
7.3.310.0030.00316.63
7.3.300.0000.00616.52
7.3.290.0080.00716.42
7.3.280.0090.00716.52
7.3.270.0090.00917.40
7.3.260.0130.00518.24
7.3.250.0150.00516.76
7.3.240.0140.01016.82
7.3.230.0060.01216.50
7.3.210.0120.01216.50
7.3.200.0090.01619.39
7.3.190.0070.01216.67
7.3.180.0080.00816.48
7.3.170.0060.00916.46
7.3.160.0070.01016.74
7.3.120.0150.00014.90
7.2.330.0070.01116.88
7.2.320.0110.01116.87
7.2.310.0090.00916.58
7.2.300.0130.00316.86
7.2.290.0030.01316.76
7.2.00.0030.01419.03
7.1.100.0100.00017.88
7.1.70.0000.00816.84
7.1.60.0040.00817.24
7.1.50.0030.00716.86
7.1.00.0000.03722.55
7.0.200.0030.01216.89
7.0.140.0030.07322.20
7.0.100.0130.07320.07
7.0.90.0230.09020.20
7.0.80.0030.08020.05
7.0.70.0170.08319.95
7.0.60.0270.06020.16
7.0.50.0100.07320.45
7.0.40.0100.06720.19
7.0.30.0000.07720.15
7.0.20.0230.06320.24
7.0.10.0070.07020.18
7.0.00.0070.06020.20
5.6.280.0030.07721.15
5.6.250.0070.06320.82
5.6.240.0070.08320.70
5.6.230.0100.05320.67
5.6.220.0030.06320.63
5.6.210.0070.07020.85
5.6.200.0130.06020.98
5.6.190.0130.07721.15
5.6.180.0170.03721.12
5.6.170.0130.07321.25
5.6.160.0170.06721.14
5.6.150.0100.08021.18
5.6.140.0200.06721.11
5.6.130.0170.04321.14
5.6.120.0130.10320.96
5.6.110.0000.05021.27
5.6.100.0070.07321.22
5.6.90.0100.08021.24
5.6.80.0000.08720.51
5.6.70.0000.05720.47
5.6.60.0200.07720.65
5.6.50.0100.04720.54
5.6.40.0100.04020.45
5.6.30.0030.05020.50
5.6.20.0070.04020.54
5.6.10.0100.03020.41
5.6.00.0070.03720.39
5.5.380.0100.08020.44
5.5.370.0100.06320.60
5.5.360.0130.07720.44
5.5.350.0100.07720.49
5.5.340.0130.07320.91
5.5.330.0170.07320.95
5.5.320.0130.07320.93
5.5.310.0130.07320.84
5.5.300.0070.07720.87
5.5.290.0000.08320.78
5.5.280.0030.05021.04
5.5.270.0100.04320.94
5.5.260.0100.07720.74
5.5.250.0070.07320.59
5.5.240.0070.06720.36
5.5.230.0130.07720.40
5.5.220.0100.04320.22
5.5.210.0100.07720.33
5.5.200.0030.04720.35
5.5.190.0100.03320.20
5.5.180.0030.04020.38
5.5.160.0030.04320.35
5.5.150.0100.03320.37
5.5.140.0070.03720.36
5.5.130.0030.03720.15
5.5.120.0030.03320.15
5.5.110.0000.03720.27
5.5.100.0000.04320.15
5.5.90.0100.03320.11
5.5.80.0030.04020.11
5.5.70.0000.04320.20
5.5.60.0000.03720.09
5.5.50.0000.03320.23
5.5.40.0070.03020.25
5.5.30.0030.03720.07
5.5.20.0030.03720.13
5.5.10.0070.03720.18
5.5.00.0030.04320.10
5.4.450.0070.08719.53
5.4.440.0070.07319.69
5.4.430.0100.04319.31
5.4.420.0130.08319.48
5.4.410.0130.06719.39
5.4.400.0170.06319.37
5.4.390.0070.07719.21
5.4.380.0030.08019.10
5.4.370.0100.07019.18
5.4.360.0070.03719.37
5.4.350.0030.04019.21
5.4.340.0030.04019.11
5.4.320.0030.03719.23
5.4.310.0000.04019.28
5.4.300.0000.04019.20
5.4.290.0000.03719.36
5.4.280.0030.03719.03
5.4.270.0000.04018.95
5.4.260.0030.03719.01
5.4.250.0030.05019.25
5.4.240.0030.03718.96
5.4.230.0070.03319.15
5.4.220.0100.03719.19
5.4.210.0030.04319.21
5.4.200.0030.03719.11
5.4.190.0100.03319.36
5.4.180.0030.03719.20
5.4.170.0030.03019.18
5.4.160.0000.04019.16
5.4.150.0000.03319.24
5.4.140.0030.03716.56
5.4.130.0030.02716.45
5.4.120.0030.03716.51
5.4.110.0130.04716.57
5.4.100.0000.03016.59
5.4.90.0000.03016.59
5.4.80.0000.04016.56
5.4.70.0000.03716.58
5.4.60.0000.03716.59
5.4.50.0070.05016.60
5.4.40.0070.07316.58
5.4.30.0100.06316.46
5.4.20.0100.07016.57
5.4.10.0130.06316.60
5.4.00.0000.07016.00
5.3.290.0030.03014.79
5.3.280.0030.03714.59
5.3.270.0000.04014.64
5.3.260.0030.03714.71
5.3.250.0000.03314.65
5.3.240.0100.03014.79
5.3.230.0030.03714.73
5.3.220.0000.04014.70
5.3.210.0070.03314.68
5.3.200.0030.06014.68
5.3.190.0030.03014.70
5.3.180.0000.04314.58
5.3.170.0030.05014.76
5.3.160.0000.04714.58
5.3.150.0030.04014.68
5.3.140.0030.08014.71
5.3.130.0100.07014.75
5.3.120.0100.05714.68
5.3.110.0070.03014.59
5.3.100.0070.06714.09
5.3.90.0070.03714.23
5.3.80.0030.03714.00
5.3.70.0070.07314.20
5.3.60.0030.05713.98
5.3.50.0070.05013.94
5.3.40.0070.07314.04
5.3.30.0030.04014.09
5.3.20.0030.05013.79
5.3.10.0100.03713.73
5.3.00.0030.05713.70
5.2.170.0030.04711.34
5.2.160.0070.02711.27
5.2.150.0000.06011.32
5.2.140.0000.05711.33
5.2.130.0000.06311.25
5.2.120.0030.05311.26
5.2.110.0100.04711.22
5.2.100.0030.06711.29
5.2.90.0130.05311.09
5.2.80.0030.04711.07
5.2.70.0070.06011.09
5.2.60.0030.05711.23
5.2.50.0000.05011.14
5.2.40.0070.05711.12
5.2.30.0000.05310.95
5.2.20.0100.05010.99
5.2.10.0030.04010.96
5.2.00.0030.03310.90
5.1.60.0030.05310.18
5.1.50.0030.05010.13
5.1.40.0000.0339.95
5.1.30.0070.04710.40
5.1.20.0070.04310.37
5.1.10.0030.03010.03
5.1.00.0000.04310.14
5.0.50.0030.0208.67
5.0.40.0030.0438.52
5.0.30.0100.0578.36
5.0.20.0100.0278.37
5.0.10.0000.0408.36
5.0.00.0000.0378.36
4.4.90.0100.0208.36
4.4.80.0000.0378.36
4.4.70.0070.0278.36
4.4.60.0030.0278.36
4.4.50.0000.0278.36
4.4.40.0000.0438.36
4.4.30.0000.0378.36
4.4.20.0000.0278.36
4.4.10.0070.0278.36
4.4.00.0000.0538.36
4.3.110.0070.0278.36
4.3.100.0030.0338.36
4.3.90.0030.0338.36
4.3.80.0070.0438.36
4.3.70.0000.0378.36
4.3.60.0000.0338.36
4.3.50.0030.0338.36
4.3.40.0030.0338.36
4.3.30.0000.0178.36
4.3.20.0000.0378.36
4.3.10.0030.0338.36
4.3.00.0030.0308.36

preferences:
46.6 ms | 401 KiB | 5 Q