3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = <<<HTML <img src="/image/fluffybunny.jpg" title="Harvey the bunny" alt="a cute little fluffy bunny" /> <img src='/image/pricklycactus.jpg' title='Roger the cactus' alt='a big green prickly cactus' /> <p>This is irrelevant text.</p> <img alt="an annoying white cockatoo" title="Polly the cockatoo" src="/image/noisycockatoo.jpg"> <img title=something src=somethingelse> HTML; libxml_use_internal_errors(true); // silences/forgives complaints from the parser (remove to see what is generated) $dom = new DOMDocument(); $dom->loadHTML($test); foreach ($dom->getElementsByTagName('img') as $i => $img) { echo "IMG#{$i}:\n"; echo "\tsrc = " , $img->getAttribute('src') , "\n"; echo "\ttitle = " , $img->getAttribute('title') , "\n"; echo "\talt = " , $img->getAttribute('alt') , "\n"; 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.0090.00918.68
8.3.50.0080.00717.42
8.3.40.0110.00418.84
8.3.30.0120.00920.96
8.3.20.0080.00522.57
8.3.10.0100.00422.00
8.3.00.0070.00722.54
8.2.180.0090.00625.92
8.2.170.0110.00422.96
8.2.160.0150.00222.66
8.2.150.0080.00624.31
8.2.140.0130.00023.81
8.2.130.0100.00524.56
8.2.120.0020.00921.44
8.2.110.0090.00321.80
8.2.100.0100.00620.56
8.2.90.0080.00820.56
8.2.80.0080.00621.10
8.2.70.0120.00320.42
8.2.60.0090.00420.29
8.2.50.0060.00620.29
8.2.40.0090.00321.28
8.2.30.0050.00721.79
8.2.20.0070.00720.66
8.2.10.0080.00621.01
8.2.00.0070.00521.57
8.1.280.0110.01125.92
8.1.270.0090.00523.81
8.1.260.0050.00924.66
8.1.250.0040.00925.53
8.1.240.0070.00921.93
8.1.230.0100.00621.97
8.1.220.0080.00520.49
8.1.210.0100.00520.92
8.1.200.0070.00820.22
8.1.190.0090.00520.16
8.1.180.0130.00320.53
8.1.170.0100.00320.29
8.1.160.0090.00720.97
8.1.150.0070.00721.08
8.1.140.0070.00621.69
8.1.130.0050.00822.63
8.1.120.0050.00920.27
8.1.110.0040.00920.33
8.1.100.0040.00920.37
8.1.90.0100.00220.27
8.1.80.0060.00820.30
8.1.70.0060.00720.34
8.1.60.0090.00320.37
8.1.50.0040.00920.36
8.1.40.0070.00420.32
8.1.30.0090.00120.42
8.1.20.0090.00520.39
8.1.10.0050.00719.52
8.1.00.0050.00719.43
8.0.300.0110.00521.63
8.0.290.0080.01019.92
8.0.280.0070.01620.78
8.0.270.0110.00519.99
8.0.260.0110.00520.81
8.0.250.0130.00320.10
8.0.240.0120.00520.12
8.0.230.0100.00720.04
8.0.220.0100.00420.01
8.0.210.0120.00520.06
8.0.200.0110.00520.09
8.0.190.0140.00320.06
8.0.180.0060.00820.04
8.0.170.0150.00320.05
8.0.160.0120.00420.06
8.0.150.0060.01120.02
8.0.140.0100.00618.97
8.0.130.0100.00317.65
8.0.120.0130.00518.55
8.0.110.0110.00618.51
8.0.100.0140.00518.54
8.0.90.0150.00518.54
8.0.80.0110.00918.57
8.0.70.0090.00418.54
8.0.60.0090.00618.52
8.0.50.0100.00618.49
8.0.30.0100.00818.58
8.0.20.0130.00618.42
8.0.10.0130.00318.66
8.0.00.0110.00918.09
7.4.330.0070.00619.26
7.4.320.0110.00419.79
7.4.300.0140.00419.78
7.4.290.0150.00419.78
7.4.280.0190.00519.92
7.4.270.0150.00318.72
7.4.260.0100.00517.73
7.4.250.0150.00418.25
7.4.240.0130.00418.30
7.4.230.0110.00518.36
7.4.220.0110.00718.28
7.4.210.0100.00817.76
7.4.200.0110.00418.20
7.4.190.0180.00018.77
7.4.180.0120.00718.81
7.4.160.0090.01017.59
7.4.150.0160.00418.80
7.4.140.0100.00918.47
7.4.130.0130.00618.27
7.4.120.0120.00618.21
7.4.110.0110.00718.11
7.4.100.0130.00518.21
7.4.90.0110.00718.24
7.4.80.0160.00518.87
7.4.70.0160.00518.24
7.4.60.0150.00518.24
7.4.50.0140.00618.18
7.4.40.0150.00518.10
7.4.30.0150.00518.72
7.4.20.0140.00718.64
7.4.10.0140.00617.84
7.4.00.0110.00717.13
7.3.330.0150.00417.30
7.3.320.0140.00517.33
7.3.310.0140.00518.14
7.3.300.0150.00618.17
7.3.290.0150.00618.12
7.3.280.0110.00917.61
7.3.270.0160.00618.59
7.3.260.0150.00517.26
7.3.250.0200.00518.67
7.3.240.0130.00917.50
7.3.230.0180.00318.14
7.3.220.0130.01018.62
7.3.210.0180.00518.05
7.3.200.0180.00718.12
7.3.190.0220.00218.17
7.3.180.0190.00518.17
7.3.170.0140.01018.05
7.3.160.0190.00518.05
7.3.150.0230.00218.51
7.3.140.0230.00118.55
7.3.130.0170.00417.70
7.3.120.0100.00817.68
7.3.110.0140.00617.70
7.3.100.0160.00517.64
7.3.90.0120.00817.84
7.3.80.0170.00517.65
7.3.70.0100.00917.68
7.3.60.0130.00517.16
7.3.50.0110.00716.48
7.3.40.0090.00916.51
7.3.30.0130.00516.39
7.3.20.0130.00617.56
7.3.10.0130.00717.55
7.3.00.0120.00717.48
7.2.340.0170.00818.68
7.2.330.0190.00518.27
7.2.320.0150.00918.30
7.2.310.0150.01018.22
7.2.300.0190.00618.23
7.2.290.0170.00818.27
7.2.280.0170.00618.68
7.2.270.0190.00518.66
7.2.260.0120.01017.87
7.2.250.0150.01017.74
7.2.240.0170.00717.86
7.2.230.0190.00517.83
7.2.220.0170.00517.77
7.2.210.0120.00917.86
7.2.200.0150.00817.92
7.2.190.0150.00617.29
7.2.180.0130.00816.70
7.2.170.0140.00816.65
7.2.160.0120.00716.69
7.2.150.0290.00817.80
7.2.140.0130.00817.74
7.2.130.0170.00417.81
7.2.120.0140.00717.82
7.2.110.0160.00717.75
7.2.100.0140.00917.74
7.2.90.0170.00817.71
7.2.80.0170.00517.79
7.2.70.0150.00717.73
7.2.60.0130.00717.68
7.2.50.0150.00717.70
7.2.40.0150.00717.82
7.2.30.0150.00617.78
7.2.20.0150.00717.76
7.2.10.0150.00717.83
7.2.00.0120.00517.77
7.1.330.0140.00618.46
7.1.320.0180.00518.46
7.1.310.0120.00918.44
7.1.300.0140.00917.58
7.1.290.0180.00517.53
7.1.280.0130.00516.79
7.1.270.0140.00516.82
7.1.260.0240.00616.79
7.1.250.0140.00516.74
7.1.240.0150.00618.45
7.1.230.0170.00318.46
7.1.220.0150.00518.42
7.1.210.0160.00418.42
7.1.200.0170.00418.43
7.1.190.0120.00918.42
7.1.180.0160.00718.42
7.1.170.0120.00818.41
7.1.160.0150.00418.39
7.1.150.0130.00618.44
7.1.140.0150.00418.44
7.1.130.0150.00518.44
7.1.120.0170.00518.42
7.1.110.0150.00518.32
7.1.100.0120.00918.45
7.1.90.0140.00818.41
7.1.80.0150.00518.47
7.1.70.0140.00718.27
7.1.60.0140.00718.39
7.1.50.0160.00518.44
7.1.40.0150.00518.38
7.1.30.0140.00718.41
7.1.20.0160.00418.42
7.1.10.0150.00618.50
7.1.00.0110.00618.41

preferences:
50.82 ms | 401 KiB | 5 Q