3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <dd class="params c-3"> <a href="/kuplyu">+</a> <a href="/kuplyu">+</a> <a href="/kuplyu">+</a> <br /> <strong> <a href="/prodam">strong text</a> </strong> <a href="/prodam/dacha">-</a>, <a href="/prodam/dom">-</a>, <a href="/prodam/kottedzh">-</a>, <a href="/prodam/taunhaus">-</a> <br /> <strong> <a href="/sdam">strong text</a> </strong> <a href="/sdam/dacha">-</a>, <a href="/sdam/dom">-</a>, <a href="/sdam/kottedzh">-</a>, <a href="/sdam/taunhaus">-</a> <br /> <a href="/snimu">+</a> <a href="/kuplyu">+</a> <a href="/kuplyu">+</a> </dd> XML ); foreach($xml->xpath('//*[not(self::strong)]/a[not(preceding::strong and following::br)]') as $a) { echo $a->attributes()->href; echo "\t"; echo (string)$a; echo "\n"; }

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.0150.00017.00
8.3.50.0070.01022.18
8.3.40.0120.00318.81
8.3.30.0070.00719.35
8.3.20.0050.00320.54
8.3.10.0040.00424.04
8.3.00.0060.00321.27
8.2.180.0120.00318.79
8.2.170.0090.00622.96
8.2.160.0080.00520.66
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.13
8.2.110.0070.00322.63
8.2.100.0040.00718.03
8.2.90.0000.00819.33
8.2.80.0050.00317.97
8.2.70.0080.00417.88
8.2.60.0000.00818.41
8.2.50.0030.00618.07
8.2.40.0090.00020.44
8.2.30.0040.00418.75
8.2.20.0040.00417.89
8.2.10.0000.00818.54
8.2.00.0040.00417.95
8.1.280.0140.00025.92
8.1.270.0050.00324.13
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0000.00922.47
8.1.230.0080.00319.52
8.1.220.0040.00418.16
8.1.210.0030.00618.77
8.1.200.0040.00717.85
8.1.190.0050.00317.63
8.1.180.0090.00018.10
8.1.170.0000.01119.06
8.1.160.0000.00822.30
8.1.150.0040.00419.04
8.1.140.0020.00517.69
8.1.130.0040.00417.86
8.1.120.0030.00517.88
8.1.110.0040.00417.85
8.1.100.0000.00717.71
8.1.90.0000.00717.88
8.1.80.0050.00217.73
8.1.70.0000.00717.71
8.1.60.0040.00418.06
8.1.50.0030.00517.89
8.1.40.0060.00617.95
8.1.30.0040.00417.86
8.1.20.0080.00017.92
8.1.10.0030.00617.81
8.1.00.0000.00817.88
8.0.300.0040.00418.77
8.0.290.0070.00017.68
8.0.280.0080.00018.86
8.0.270.0070.00017.63
8.0.260.0000.00717.24
8.0.250.0070.00017.27
8.0.240.0040.00417.27
8.0.230.0030.00317.17
8.0.220.0000.00717.20
8.0.210.0030.00517.36
8.0.200.0040.00417.43
8.0.190.0000.00717.27
8.0.180.0000.00717.24
8.0.170.0040.00417.39
8.0.160.0030.00317.23
8.0.150.0070.00017.16
8.0.140.0040.00417.36
8.0.130.0060.00013.61
8.0.120.0030.00517.16
8.0.110.0040.00417.37
8.0.100.0030.00617.33
8.0.90.0040.00417.31
8.0.80.0030.01317.31
8.0.70.0070.00017.30
8.0.60.0000.00717.28
8.0.50.0040.00417.32
8.0.30.0100.00917.52
8.0.20.0110.00917.59
8.0.10.0050.00317.32
8.0.00.0100.00717.21
7.4.330.0000.00615.44
7.4.320.0000.00616.95
7.4.300.0030.00316.86
7.4.290.0030.00316.85
7.4.280.0000.01117.04
7.4.270.0000.00816.95
7.4.260.0030.00316.91
7.4.250.0000.00716.77
7.4.240.0040.00416.87
7.4.230.0040.00416.86
7.4.220.0060.01216.91
7.4.210.0050.01116.85
7.4.200.0040.00416.79
7.4.190.0030.00316.88
7.4.160.0130.00316.90
7.4.150.0110.00717.40
7.4.140.0090.01217.86
7.4.130.0090.00816.99
7.4.120.0090.01016.93
7.4.110.0140.00417.03
7.4.100.0060.01317.06
7.4.90.0070.01316.96
7.4.80.0140.00419.39
7.4.70.0080.01117.02
7.4.60.0120.00617.03
7.4.50.0000.00717.04
7.4.40.0060.01016.83
7.4.30.0060.01016.91
7.4.00.0060.00915.03
7.3.330.0070.00013.59
7.3.320.0050.00013.48
7.3.310.0000.00716.82
7.3.300.0000.00716.73
7.3.290.0090.00616.78
7.3.280.0090.00816.70
7.3.270.0160.00317.40
7.3.260.0110.01116.80
7.3.250.0080.01016.73
7.3.240.0040.01216.59
7.3.230.0120.00616.54
7.3.210.0030.01616.84
7.3.200.0100.01219.39
7.3.190.0060.01016.94
7.3.180.0080.00916.70
7.3.170.0060.00916.66
7.3.160.0150.00316.62
7.3.120.0060.00915.18
7.2.330.0160.00316.80
7.2.320.0130.00917.09
7.2.310.0060.01217.10
7.2.300.0070.01417.08
7.2.290.0070.01116.75
7.2.00.0100.00719.50
7.1.100.0080.00318.23
7.1.70.0040.00416.95
7.1.60.0110.00419.46
7.1.50.0030.01316.81
7.1.00.0070.07722.59
7.0.200.0050.00316.70
7.0.140.0130.06322.21
7.0.60.0100.08320.20
7.0.50.0070.08718.05
7.0.40.0170.06320.19
7.0.30.0470.06020.38
7.0.20.0300.05320.32
7.0.10.0070.05020.29
7.0.00.0130.07720.32
5.6.280.0070.07021.23
5.6.210.0030.07020.77
5.6.200.0170.07718.41
5.6.190.0070.08320.55
5.6.180.3230.04320.52
5.6.170.0270.07720.76
5.6.160.0300.03320.76
5.6.150.0030.05018.38
5.6.140.0200.06318.34
5.6.130.0030.09018.32
5.6.120.0030.07321.11
5.6.110.0030.05721.07
5.6.100.0130.06021.13
5.6.90.0070.06721.16
5.6.80.0170.06720.57
5.6.70.0100.05020.56
5.5.350.0170.04320.64
5.5.340.0070.05318.14
5.5.330.0130.07320.66
5.5.320.0500.06720.69
5.5.310.0330.07720.50
5.5.300.0000.04318.07
5.5.290.0030.08318.10
5.5.280.0070.08721.02
5.5.270.0130.05321.10
5.5.260.0100.08021.02
5.5.250.0030.07320.82
5.5.240.0030.04020.23
5.4.450.0270.04719.55
5.4.440.0400.03719.53
5.4.430.0430.03719.69
5.4.420.0300.04019.48
5.4.410.0400.03719.57
5.4.400.0430.03719.24
5.4.390.0500.04719.20
5.4.380.0700.03719.43
5.4.370.0530.03319.22
5.4.360.0370.03319.39
5.4.350.0770.05019.32
5.4.340.0670.03719.08
5.4.320.0330.04319.38
5.4.310.0530.03019.29
5.4.300.0630.04719.41
5.4.290.0530.03719.15
5.4.280.0870.03719.20
5.4.270.0370.03019.40
5.4.260.0870.04019.04
5.4.250.0270.03319.35
5.4.240.0670.03319.14
5.4.230.0470.03719.31
5.4.220.0400.05319.38
5.4.210.0930.04019.21
5.4.200.1100.03019.05
5.4.190.0670.03019.28
5.4.180.0430.05019.34
5.4.170.0670.03719.14
5.4.160.0730.03319.29
5.4.150.0700.03719.32
5.4.140.0830.04016.46
5.4.130.0200.03316.40
5.4.120.0800.03716.49
5.4.110.0500.04016.57
5.4.100.0430.03716.32
5.4.90.0800.04016.40
5.4.80.0430.03716.55
5.4.70.0470.04016.54
5.4.60.0530.03316.47
5.4.50.0370.06316.48
5.4.40.0500.04016.54
5.4.30.0330.04016.37
5.4.20.0470.03716.54
5.4.10.0270.04716.54
5.4.00.0300.04016.01
5.3.290.0470.04316.01
5.3.280.0330.03716.01
5.3.270.0300.05016.01
5.3.260.0830.03716.01
5.3.250.0530.03316.01
5.3.240.0830.03316.01
5.3.230.0630.03316.01
5.3.220.0200.03716.01
5.3.210.0670.03716.01
5.3.200.0430.04016.01
5.3.190.0630.04716.01
5.3.180.0530.04316.01
5.3.170.0730.04716.01
5.3.160.0500.04016.01
5.3.150.0530.03716.01
5.3.140.0570.03716.01
5.3.130.0130.04016.01
5.3.120.0230.04716.01
5.3.110.0570.03716.01
5.3.100.0370.03716.01
5.3.90.0730.03716.01
5.3.80.0700.03016.01
5.3.70.0900.03316.01
5.3.60.0570.03016.01
5.3.50.0470.03716.01
5.3.40.0400.04016.01
5.3.30.0630.03016.01
5.3.20.0700.03316.01
5.3.10.0600.03316.01
5.3.00.0630.03316.01
5.2.170.0500.04015.98
5.2.160.0500.03716.01
5.2.150.0570.02716.01
5.2.140.0100.03316.01
5.2.130.0500.02016.01
5.2.120.0530.02316.01
5.2.110.0600.02716.01
5.2.100.0530.03716.01
5.2.90.0500.03016.01
5.2.80.0370.02316.01
5.2.70.0400.03316.01
5.2.60.0630.02716.01
5.2.50.0600.02316.01
5.2.40.0500.02316.01
5.2.30.0230.02316.01
5.2.20.0100.03716.01
5.2.10.0430.02315.66
5.2.00.0200.03015.66
5.1.60.0270.02715.66
5.1.50.0170.02315.66
5.1.40.0330.02715.66
5.1.30.0270.02715.66
5.1.20.0270.03715.66
5.1.10.0500.04015.66
5.1.00.0230.02715.66
5.0.50.0130.02715.66
5.0.40.0100.02315.66
5.0.30.0130.03015.66
5.0.20.0170.01715.66
5.0.10.0070.03015.66
5.0.00.0170.02715.66
4.4.90.0170.02016.01
4.4.80.0000.01716.01
4.4.70.0370.01316.00
4.4.60.0100.01315.94
4.4.50.0230.01315.66
4.4.40.0100.02715.66
4.4.30.0130.01715.66
4.4.20.0100.01715.66
4.4.10.0130.01315.66
4.4.00.0000.02715.66
4.3.110.0230.01715.66
4.3.100.0030.02015.66
4.3.90.0230.02015.66
4.3.80.0130.02315.66
4.3.70.0100.01315.66
4.3.60.0200.01015.66
4.3.50.0300.02015.66
4.3.40.0200.02715.66
4.3.30.0070.01315.66
4.3.20.0030.01715.63
4.3.10.0100.01715.63
4.3.00.0000.01715.63

preferences:
64.32 ms | 401 KiB | 5 Q