3v4l.org

run code in 300+ PHP versions simultaneously
<?php // vim: ts=3 sw=3 sts=3 et $body = file_get_contents('http://www.google.com'); libxml_use_internal_errors(true); $dom = new DOMDocument; $dom->loadHTML($body); $xpath = new DOMXPath($dom); $found = $xpath->query( '//a[ not(starts-with(normalize-space(@href), "http://")) and not(starts-with(normalize-space(@href), "https://")) ]'); header('content-type: text/plain'); foreach ($found as $node) { var_dump($node->getAttribute('href')); }

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.40.0000.01519.12
8.3.30.0070.00719.04
8.3.20.0000.00819.07
8.3.10.0040.00419.55
8.3.00.0090.00024.08
8.2.170.0090.00622.96
8.2.160.0100.00320.68
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.35
8.2.110.0070.00320.55
8.2.100.0040.00817.97
8.2.90.0040.00419.47
8.2.80.0000.00818.29
8.2.70.0030.00617.63
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0030.00618.28
8.2.30.0080.00020.04
8.2.20.0080.00018.01
8.2.10.0000.00717.85
8.2.00.0060.00317.78
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00322.17
8.1.230.0080.00420.88
8.1.220.0030.00618.77
8.1.210.0040.00419.04
8.1.200.0030.00617.60
8.1.190.0060.00319.44
8.1.180.0000.00918.10
8.1.170.0040.00418.75
8.1.160.0040.00418.91
8.1.150.0000.00818.71
8.1.140.0080.00017.56
8.1.130.0000.00718.03
8.1.120.0040.00417.61
8.1.110.0040.00417.54
8.1.100.0000.00817.54
8.1.90.0080.00017.64
8.1.80.0040.00417.59
8.1.70.0050.00217.51
8.1.60.0080.00017.75
8.1.50.0040.00417.65
8.1.40.0030.00617.67
8.1.30.0040.00417.84
8.1.20.0030.00517.72
8.1.10.0000.00817.75
8.1.00.0040.00417.68
8.0.300.0000.00820.07
8.0.290.0040.00417.41
8.0.280.0000.00718.53
8.0.270.0040.00417.46
8.0.260.0030.00317.08
8.0.250.0000.00717.14
8.0.240.0060.00317.25
8.0.230.0040.00417.06
8.0.220.0040.00417.14
8.0.210.0030.00317.06
8.0.200.0030.00317.11
8.0.190.0000.00717.29
8.0.180.0030.00717.11
8.0.170.0000.00717.13
8.0.160.0000.00717.06
8.0.150.0050.00317.12
8.0.140.0040.00417.08
8.0.130.0030.00313.64
8.0.120.0040.00417.16
8.0.110.0020.00517.29
8.0.100.0040.00417.09
8.0.90.0000.00817.06
8.0.80.0130.00317.22
8.0.70.0000.00817.17
8.0.60.0000.00917.08
8.0.50.0090.00017.02
8.0.30.0120.01117.34
8.0.20.0070.01517.45
8.0.10.0000.00917.30
8.0.00.0080.01117.06
7.4.330.0030.00315.21
7.4.320.0030.00316.91
7.4.300.0030.00316.87
7.4.290.0000.00716.89
7.4.280.0040.00416.89
7.4.270.0000.00716.84
7.4.260.0000.00613.67
7.4.250.0030.00517.04
7.4.240.0070.00017.02
7.4.230.0030.00316.93
7.4.220.0090.01216.93
7.4.210.0090.00817.01
7.4.200.0030.00516.95
7.4.190.0040.00417.12
7.4.160.0100.00717.01
7.4.150.0060.02017.40
7.4.140.0090.00817.86
7.4.130.0140.00517.08
7.4.120.0110.00717.07
7.4.110.0090.00916.82
7.4.100.0030.01317.09
7.4.90.0160.00316.79
7.4.80.0040.01519.37
7.4.70.0100.01416.91
7.4.60.0060.01217.02
7.4.50.0040.00417.23
7.4.40.0070.01022.52
7.4.30.0040.01416.94
7.4.00.0070.00715.35
7.3.330.0000.00613.54
7.3.320.0030.00313.77
7.3.310.0070.00016.82
7.3.300.0040.00416.75
7.3.290.0060.00916.79
7.3.280.0090.00716.85
7.3.270.0120.00617.40
7.3.260.0130.01318.24
7.3.250.0080.01116.83
7.3.240.0100.01016.98
7.3.230.0110.00716.86
7.3.210.0090.01216.74
7.3.200.0150.00919.39
7.3.190.0060.01016.91
7.3.180.0140.00316.77
7.3.170.0080.00816.98
7.3.160.0110.00616.71
7.3.120.0070.01015.16
7.3.110.0110.00715.21
7.3.100.0060.00914.98
7.3.90.0100.01015.14
7.3.80.0060.01315.18
7.3.70.0080.00415.24
7.3.60.0030.01315.21
7.3.50.0030.00615.27
7.3.40.0070.00415.18
7.3.30.0050.00515.09
7.3.20.0030.00917.04
7.3.10.0060.00616.72
7.3.00.0040.00417.02
7.2.330.0090.00917.05
7.2.320.0060.01217.07
7.2.310.0180.00317.09
7.2.300.0060.01116.81
7.2.290.0130.00316.86
7.2.250.0120.00915.41
7.2.240.0090.00615.27
7.2.230.0060.01515.49
7.2.220.0130.00715.35
7.2.210.0090.00615.30
7.2.200.0030.01515.38
7.2.190.0090.00615.25
7.2.180.0060.00615.27
7.2.170.0070.00715.29
7.2.60.0100.00317.18
7.2.00.0100.00319.64
7.1.330.0070.01016.32
7.1.320.0030.01316.38
7.1.310.0060.00616.08
7.1.300.0070.00315.79
7.1.290.0040.00716.16
7.1.280.0030.00915.98
7.1.270.0000.01416.04
7.1.260.0000.01116.20
7.1.200.0090.00616.08
7.1.70.0030.00517.36
7.1.60.0100.01319.40
7.1.50.0040.00817.18
7.1.00.0030.07022.81
7.0.200.0770.00715.31
7.0.140.0000.07722.44
7.0.70.0070.05722.14
7.0.60.0030.07322.27
7.0.50.0070.06322.52
7.0.40.0000.04720.67
7.0.30.0000.09320.67
7.0.20.0100.09320.42
7.0.10.0100.07020.37
7.0.00.0070.09720.45
5.6.280.0070.07321.48
5.6.220.0030.07721.00
5.6.210.0070.08021.09
5.6.200.0030.09321.56
5.6.190.0070.08721.52
5.6.180.0130.07021.44
5.6.170.0070.05321.53
5.6.160.0070.08021.58
5.6.150.0270.06321.47
5.6.140.0070.07721.36
5.6.130.0100.07721.56
5.6.120.0130.07721.42
5.6.110.0030.05721.50
5.6.100.0070.08021.41
5.6.90.0030.08021.59
5.6.80.0100.07720.80
5.6.70.0100.05020.85
5.6.60.0030.05020.79
5.6.50.0100.06320.75
5.6.40.0030.08720.71
5.6.30.0070.08020.78
5.6.20.0030.08020.82
5.6.10.0070.08020.79
5.6.00.0070.08320.73
5.5.360.0070.08020.80
5.5.350.0000.06720.89
5.5.340.0030.08321.39
5.5.330.0100.07721.39
5.5.320.0100.08021.37
5.5.310.0100.07721.42
5.5.300.0100.07721.41
5.5.290.0070.08021.17
5.5.280.0030.04321.35
5.5.270.0070.08321.16
5.5.260.0130.06321.31
5.5.250.0030.07020.89
5.5.240.0030.06720.75
5.5.230.0030.07720.55
5.5.220.0070.07720.79
5.5.210.0100.07720.54
5.5.200.0000.08320.43
5.5.190.0100.05320.64
5.5.180.0030.07720.52
5.5.160.0070.07720.61
5.5.150.0100.07720.76
5.5.140.0070.07320.53
5.5.130.0030.06020.71
5.5.120.0070.08020.53
5.5.110.0070.08020.54
5.5.100.0170.07320.50
5.5.90.0030.05720.57
5.5.80.0000.08320.47
5.5.70.0030.08020.57
5.5.60.0130.07320.50
5.5.50.0100.06320.38
5.5.40.0070.07720.55
5.5.30.0030.05720.52
5.5.20.0030.08320.59
5.5.10.0030.08020.43
5.5.00.0070.07720.53
5.4.450.0070.08019.77
5.4.440.0070.03719.81
5.4.430.0030.08019.86
5.4.420.0100.07719.78
5.4.410.0000.07319.70
5.4.400.0070.06719.65
5.4.390.0070.07319.54
5.4.380.0100.07019.59
5.4.370.0000.05719.62
5.4.360.0030.05719.55
5.4.350.0030.06719.71
5.4.340.0000.06719.62
5.4.320.0030.08319.46
5.4.310.0030.08019.46
5.4.300.0030.07319.59
5.4.290.0030.07719.50
5.4.280.0130.07019.46
5.4.270.0030.08019.63
5.4.260.0100.07719.51
5.4.250.0100.07319.70
5.4.240.0030.07319.70
5.4.230.0070.08019.39
5.4.220.0030.08319.36
5.4.210.0030.05319.46
5.4.200.0000.05719.45
5.4.190.0000.07719.73
5.4.180.0030.07719.45
5.4.170.0030.08019.53
5.4.160.0070.06719.29
5.4.150.0030.07719.71
5.4.140.0030.07716.92
5.4.130.0030.06016.94
5.4.120.0130.06317.02
5.4.110.0030.05716.82
5.4.100.0030.07016.90
5.4.90.0000.08316.98
5.4.80.0000.03716.86
5.4.70.0070.06716.95
5.4.60.0100.04316.90
5.4.50.0030.05016.80
5.4.40.0070.05316.94
5.4.30.0030.04316.89
5.4.20.0030.04716.79
5.4.10.0000.03716.93
5.4.00.0030.03316.40
5.3.290.0000.07314.87
5.3.280.0030.07714.91
5.3.270.0100.07314.90
5.3.260.0100.07315.00
5.3.250.0000.08314.91
5.3.240.0070.04315.00
5.3.230.0030.08014.79
5.3.220.0030.07715.00
5.3.210.0030.04014.98
5.3.200.0130.06714.96
5.3.190.0030.05014.96
5.3.180.0030.03714.96
5.3.170.0000.07714.84
5.3.160.0030.05014.86
5.3.150.0030.03714.83
5.3.140.0000.04014.88
5.3.130.0070.03314.87
5.3.120.0000.04014.83
5.3.110.0030.03714.95
5.3.100.0030.03314.42
5.3.90.0000.03714.44
5.3.80.0000.03714.41
5.3.70.0030.03314.41
5.3.60.0000.03714.28
5.3.50.0000.03714.33
5.3.40.0030.03314.27
5.3.30.0030.03314.29
5.3.20.0030.06014.09
5.3.10.0030.03314.13
5.3.00.0030.03314.03
5.2.170.0000.03012.40
5.2.160.0030.02712.40
5.2.150.0000.03012.40
5.2.140.0000.04312.40
5.2.130.0030.02712.40
5.2.120.0000.04012.40
5.2.110.0000.03012.40
5.2.100.0000.03312.40
5.2.90.0030.04312.40
5.2.80.0000.03312.40
5.2.70.0030.03012.40
5.2.60.0030.02712.40
5.2.50.0030.05012.40
5.2.40.0070.04712.40
5.2.30.0030.02312.40
5.2.20.0000.03012.40
5.2.10.0000.02312.40
5.2.00.0030.02712.40
5.1.60.0000.02312.40
5.1.50.0030.02312.40
5.1.40.0000.02312.40
5.1.30.0030.02012.40
5.1.20.0000.04012.40
5.1.10.0030.02312.40
5.1.00.0000.04312.40
5.0.50.0000.01712.40
5.0.40.0000.02012.40
5.0.30.0070.02712.40
5.0.20.0000.02312.40
5.0.10.0000.02012.40
5.0.00.0000.02712.40
4.4.90.0000.01712.40
4.4.80.0000.03712.40
4.4.70.0000.01312.40
4.4.60.0030.01712.40
4.4.50.0000.02312.40
4.4.40.0000.02012.40
4.4.30.0000.01312.40
4.4.20.0000.01712.40
4.4.10.0000.01312.40
4.4.00.0000.02312.40
4.3.110.0000.01712.40
4.3.100.0000.01712.40
4.3.90.0030.01312.40
4.3.80.0030.01712.40
4.3.70.0000.02312.40
4.3.60.0000.01312.40
4.3.50.0000.02312.40
4.3.40.0000.02012.40
4.3.30.0030.02012.40
4.3.20.0000.03012.40
4.3.10.0070.02012.40
4.3.00.0000.01312.40

preferences:
42.24 ms | 400 KiB | 5 Q