3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create DOM from URL or file $html = file_get_html('http://www.google.com/'); // Find all images foreach($html->find('img') as $element) echo $element->src . '<br>'; // Find all links foreach($html->find('a') as $element) echo $element->href . '<br>'; ?>

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.0100.00318.43
8.3.50.0130.00722.05
8.3.40.0120.00318.84
8.3.30.0120.00319.10
8.3.20.0000.00720.33
8.3.10.0050.00322.15
8.3.00.0040.00419.26
8.2.180.0090.00616.88
8.2.170.0100.00722.96
8.2.160.0070.00719.22
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0000.00822.18
8.2.110.0100.00020.41
8.2.100.0040.00817.84
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0050.00517.50
8.2.60.0000.00817.68
8.2.50.0050.00318.07
8.2.40.0000.00718.03
8.2.30.0040.00417.99
8.2.20.0040.00417.68
8.2.10.0050.00218.04
8.2.00.0000.00717.73
8.1.280.0110.00725.92
8.1.270.0000.00923.83
8.1.260.0040.00426.35
8.1.250.0140.00028.09
8.1.240.0090.00022.18
8.1.230.0070.00418.92
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0080.00018.30
8.1.160.0000.00821.89
8.1.150.0080.00318.81
8.1.140.0000.00817.23
8.1.130.0030.00317.64
8.1.120.0030.00317.25
8.1.110.0000.00817.38
8.1.100.0040.00417.32
8.1.90.0000.00817.41
8.1.80.0000.00717.34
8.1.70.0030.00317.24
8.1.60.0040.00417.36
8.1.50.0070.00417.36
8.1.40.0040.00417.44
8.1.30.0050.00317.59
8.1.20.0050.00317.58
8.1.10.0030.00517.57
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0070.00017.11
8.0.260.0030.00317.20
8.0.250.0030.00316.84
8.0.240.0040.00416.88
8.0.230.0030.00316.94
8.0.220.0070.00016.87
8.0.210.0040.00416.79
8.0.200.0030.00316.91
8.0.190.0040.00416.96
8.0.180.0000.00716.93
8.0.170.0080.00016.83
8.0.160.0030.00416.77
8.0.150.0000.00716.85
8.0.140.0070.00016.86
8.0.130.0000.00613.32
8.0.120.0030.00516.80
8.0.110.0060.00316.82
8.0.100.0000.00716.78
8.0.90.0040.00416.86
8.0.80.0030.01216.82
8.0.70.0030.00516.88
8.0.60.0040.00416.77
8.0.50.0000.00816.85
8.0.30.0130.01117.05
8.0.20.0100.00917.40
8.0.10.0000.00716.77
8.0.00.0110.01016.83
7.4.330.0070.00015.00
7.4.320.0090.00016.48
7.4.300.0030.00316.43
7.4.290.0030.00316.55
7.4.280.0000.00716.49
7.4.270.0030.00316.57
7.4.260.0040.00416.50
7.4.250.0040.00416.48
7.4.240.0030.00516.51
7.4.230.0000.00716.54
7.4.220.0100.00716.41
7.4.210.0170.00016.45
7.4.200.0000.00716.57
7.4.160.0060.00916.41
7.4.150.0110.00817.40
7.4.140.0080.01317.86
7.4.130.0120.00516.54
7.4.120.0080.00816.36
7.4.110.0030.01416.26
7.4.100.0070.01016.51
7.4.90.0040.01216.36
7.4.80.0060.01619.39
7.4.70.0060.00916.33
7.4.60.0090.00916.43
7.4.50.0090.00016.54
7.4.40.0140.00316.21
7.4.30.0040.01216.47
7.4.00.0110.00614.74
7.3.330.0030.00313.12
7.3.320.0000.00613.18
7.3.310.0030.00316.20
7.3.300.0000.00716.25
7.3.290.0070.00716.21
7.3.280.0090.00716.25
7.3.270.0100.00717.40
7.3.260.0100.00716.24
7.3.250.0160.00516.33
7.3.240.0120.00616.48
7.3.230.0080.00816.50
7.3.210.0090.00616.38
7.3.200.0110.00819.39
7.3.190.0120.00516.33
7.3.180.0120.00316.30
7.3.170.0030.01416.54
7.3.160.0160.00316.39
7.3.120.0040.01214.63
7.3.110.0100.00714.92
7.3.100.0070.01015.03
7.3.90.0040.01014.84
7.3.80.0070.01314.67
7.3.70.0040.00714.70
7.3.60.0050.00314.88
7.3.50.0040.00814.94
7.3.40.0000.01614.82
7.3.30.0070.00614.40
7.3.20.0090.00016.69
7.3.10.0050.00616.51
7.3.00.0040.00616.35
7.2.330.0030.01316.36
7.2.320.0170.00416.25
7.2.310.0120.00616.52
7.2.300.0060.01216.57
7.2.290.0070.01216.57
7.2.250.0150.00614.67
7.2.240.0030.01615.04
7.2.230.0100.00715.04
7.2.220.0040.00914.48
7.2.210.0070.01015.13
7.2.200.0000.01414.82
7.2.190.0100.00714.75
7.2.180.0080.00314.82
7.2.170.0030.01714.91
7.2.130.0080.00416.57
7.2.120.0050.00616.58
7.2.110.0070.00716.45
7.2.100.0060.00816.66
7.2.90.0030.00816.50
7.2.80.0050.01016.53
7.2.70.0080.00616.56
7.2.60.0050.00816.67
7.2.50.0060.00516.82
7.2.40.0030.00916.72
7.2.30.0080.00616.72
7.2.20.0050.00416.62
7.2.10.0070.00516.73
7.2.00.0050.00817.54
7.1.330.0070.00715.52
7.1.320.0080.00415.56
7.1.310.0150.00415.48
7.1.300.0030.00915.42
7.1.290.0170.00315.30
7.1.280.0040.00415.66
7.1.270.0030.01015.52
7.1.260.0040.00415.50
7.1.250.0070.00515.34
7.1.200.0040.00415.77
7.1.100.0100.00318.20
7.1.70.0050.00316.73
7.1.60.0070.01719.32
7.1.50.0160.00916.95
7.1.00.0000.08022.35
7.0.200.0000.01116.63
7.0.140.0030.06321.96
7.0.60.0100.05720.04
7.0.50.0100.04317.88
7.0.40.0130.08720.02
7.0.30.0330.05020.00
7.0.20.0370.07720.04
7.0.10.0030.06720.16
7.0.00.0170.05020.33
5.6.280.0000.07320.86
5.6.210.0030.05320.62
5.6.200.0100.08318.19
5.6.190.0130.08020.49
5.6.180.0470.05720.63
5.6.170.0230.04320.51
5.6.160.0030.08720.50
5.6.150.0070.05718.17
5.6.140.0030.04318.11
5.6.130.0070.08318.13
5.6.120.0100.03721.08
5.6.110.0130.05021.11
5.6.100.0070.08321.13
5.6.90.0170.07720.96
5.6.80.0070.05320.50
5.5.350.0130.07720.41
5.5.340.0000.04317.96
5.5.330.0000.04320.36
5.5.320.0430.07720.18
5.5.310.0230.04020.14
5.5.300.0070.08717.89
5.5.290.0070.04017.91
5.5.280.0100.06320.73
5.5.270.0130.06020.86
5.5.260.0200.07720.79
5.5.250.0070.08320.58
5.5.240.0200.07720.25
5.4.450.0300.03019.42
5.4.440.0130.04319.41
5.4.430.0270.04319.40
5.4.420.0630.00019.35
5.4.410.0630.00019.39
5.4.400.0730.00019.02
5.4.390.0630.00018.96
5.4.380.0630.00019.13
5.4.370.0630.00018.95
5.4.360.0630.00019.00
5.4.350.0730.00019.09
5.4.340.0670.00019.07
5.4.320.0100.03312.46
5.4.310.0120.04612.45
5.4.300.0040.04412.46
5.4.290.0090.03912.45
5.4.280.0100.03412.35
5.4.270.0100.03912.35
5.4.260.0070.04012.35
5.4.250.0070.03712.35
5.4.240.0070.03612.35
5.4.230.0050.04112.34
5.4.220.0070.03912.34
5.4.210.0070.03712.34
5.4.200.0070.03812.34
5.4.190.0080.03912.34
5.4.180.0080.04112.34
5.4.170.0040.04012.35
5.4.160.0080.03412.35
5.4.150.0070.03712.34
5.4.140.0140.04212.03
5.4.130.0110.03912.01
5.4.120.0080.03511.97
5.4.110.0070.03511.97
5.4.100.0060.03611.97
5.4.90.0060.03911.97
5.4.80.0120.03911.96
5.4.70.0120.04511.96
5.4.60.0100.03411.96
5.4.50.0080.03811.96
5.4.40.0110.04411.95
5.4.30.0120.04611.95
5.4.20.0090.04111.95
5.4.10.0090.04311.95
5.4.00.0120.04511.45
5.3.290.0100.03812.80
5.3.280.0060.03912.70
5.3.270.0120.04912.72
5.3.260.0100.05412.72
5.3.250.0070.04612.72
5.3.240.0090.05012.72
5.3.230.0040.04212.70
5.3.220.0050.03812.68
5.3.210.0060.04012.68
5.3.200.0030.04012.68
5.3.190.0040.04112.68
5.3.180.0100.03612.68
5.3.170.0070.03712.67
5.3.160.0070.03712.67
5.3.150.0010.04212.68
5.3.140.0070.03612.66
5.3.130.0080.03612.66
5.3.120.0060.04212.66
5.3.110.0100.03812.66
5.3.100.0110.03812.11
5.3.90.0050.03812.08
5.3.80.0060.03812.07
5.3.70.0100.04312.08
5.3.60.0090.04812.06
5.3.50.0090.04212.00
5.3.40.0090.04712.00
5.3.30.0070.04611.95
5.3.20.0100.04111.72
5.3.10.0150.05411.70
5.3.00.0110.04411.68
5.2.170.0230.0499.18
5.2.160.0080.0329.18
5.2.150.0050.0339.18
5.2.140.0030.0369.18
5.2.130.0070.0299.14
5.2.120.0090.0269.14
5.2.110.0060.0309.14
5.2.100.0070.0349.14
5.2.90.0070.0329.14
5.2.80.0150.0769.14
5.2.70.0130.0539.14
5.2.60.0050.0329.09
5.2.50.0080.0419.06
5.2.40.0100.0369.03
5.2.30.0070.0379.01
5.2.20.0100.0299.00
5.2.10.0040.0318.92
5.2.00.0030.0548.79
5.1.60.0120.0298.06
5.1.50.0080.0298.07
5.1.40.0080.0328.05
5.1.30.0070.0288.40
5.1.20.0030.0308.42
5.1.10.0090.0278.14
5.1.00.0060.0258.14
5.0.50.0040.0226.62
5.0.40.0070.0176.47
5.0.30.0040.0356.29
5.0.20.0040.0206.26
5.0.10.0030.0216.24
5.0.00.0060.0306.23
4.4.90.0060.0124.78
4.4.80.0050.0134.75
4.4.70.0030.0194.75
4.4.60.0040.0164.76
4.4.50.0040.0154.77
4.4.40.0030.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0174.85
4.4.10.0130.0284.85
4.4.00.0030.0264.76
4.3.110.0030.0164.67
4.3.100.0030.0154.67
4.3.90.0060.0124.64
4.3.80.0080.0204.58
4.3.70.0040.0134.63
4.3.60.0040.0134.63
4.3.50.0030.0184.63
4.3.40.0030.0274.54
4.3.30.0030.0153.28
4.3.20.0000.0183.26
4.3.10.0030.0153.22
4.3.00.0000.02013.21

preferences:
42.05 ms | 401 KiB | 5 Q