3v4l.org

run code in 300+ PHP versions simultaneously
<?php //hmmmmm - temporarily :) libxml_use_internal_errors(true); $h = ' <!DOCTYPE html> <html><body> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> <circle stroke-width="12" r="43" cx="50" cy="50" fill="none" stroke="#3A5"/> <circle r="6" cx="59" cy="23" fill="#000"/> <g stroke-linejoin="round" stroke-linecap="round" stroke-width="1" stroke="#000" fill="none" id = "blah"> <path d="M36,36c5,0,3,2,8-1c1,2,1,3,3,2c3,0-6,7-3,8c-4-2-9,2-14-2c4-3,4-4,5-7c5,0,8,2,12,1"/> <path fill="#000" d="M34,29h31c2,5,7,10,7,16l-8,1l8,1l-3,31l-5,-18l-11,18l5-34l-3-8z"/> <path stroke-width="2" d="M27,48h23M28,49h21l-3,28h-14l-4,-28h5l3,28h3v-28h5l-2,28m3-4h-13m-1-5h16m0-5h-16m-1-5h18m0-5h-19"/> </g> <path stroke="#F00" stroke-width="1"/> </svg> </body></html> '; $doc = new DomDocument; $doc->loadHTML($h); echo "elemet's tag name: " . $doc->getElementById('blah')->tagName . "\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.0120.00318.68
8.3.50.0120.00618.58
8.3.40.0070.01018.93
8.3.30.0200.00019.02
8.3.20.0040.00419.00
8.3.10.0000.00822.10
8.3.00.0080.00023.77
8.2.180.0210.00018.35
8.2.170.0070.00722.96
8.2.160.0140.00019.37
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00421.39
8.2.110.0060.00322.68
8.2.100.0090.00317.83
8.2.90.0080.00018.00
8.2.80.0050.00317.97
8.2.70.0040.00418.05
8.2.60.0030.00518.34
8.2.50.0050.00318.10
8.2.40.0000.00720.89
8.2.30.0080.00020.86
8.2.20.0110.00018.30
8.2.10.0040.00418.31
8.2.00.0050.00518.37
8.1.280.0070.00725.92
8.1.270.0080.00024.02
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00424.12
8.1.230.0070.00318.08
8.1.220.0080.00018.03
8.1.210.0050.00318.77
8.1.200.0050.00517.60
8.1.190.0040.00419.38
8.1.180.0080.00018.10
8.1.170.0040.00418.92
8.1.160.0070.00019.25
8.1.150.0040.00419.03
8.1.140.0050.00219.07
8.1.130.0080.00022.29
8.1.120.0030.00517.64
8.1.110.0050.00517.73
8.1.100.0090.00017.70
8.1.90.0040.00417.73
8.1.80.0030.00617.71
8.1.70.0040.00417.66
8.1.60.0030.00717.75
8.1.50.0120.00017.70
8.1.40.0000.00917.79
8.1.30.0030.00717.97
8.1.20.0030.00617.94
8.1.10.0040.00417.82
8.1.00.0080.00017.81
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0080.00018.68
8.0.270.0000.00716.94
8.0.260.0030.00320.45
8.0.250.0030.00317.21
8.0.240.0050.00317.20
8.0.230.0060.00317.21
8.0.220.0030.00717.00
8.0.210.0000.00817.07
8.0.200.0050.00317.23
8.0.190.0020.00517.11
8.0.180.0040.00417.17
8.0.170.0000.00917.03
8.0.160.0050.00317.17
8.0.150.0050.00217.04
8.0.140.0070.00017.03
8.0.130.0060.00013.57
8.0.120.0070.00017.14
8.0.110.0070.00316.98
8.0.100.0000.00717.03
8.0.90.0080.00017.06
8.0.80.0060.01317.18
8.0.70.0000.00817.16
8.0.60.0000.00716.91
8.0.50.0000.00916.89
8.0.30.0110.00717.35
8.0.20.0040.01617.40
8.0.10.0040.00417.25
8.0.00.0050.01416.99
7.4.330.0050.00015.55
7.4.320.0030.00316.85
7.4.300.0000.00616.84
7.4.290.0000.00816.83
7.4.280.0030.00516.86
7.4.270.0030.00316.66
7.4.260.0000.00716.77
7.4.250.0000.00716.82
7.4.240.0050.00316.79
7.4.230.0040.00416.89
7.4.220.0050.00216.75
7.4.210.0080.00716.66
7.4.200.0030.00316.82
7.4.160.0080.01016.75
7.4.140.0100.01217.86
7.4.130.0070.01016.67
7.4.120.0100.00916.67
7.4.110.0090.00616.62
7.4.100.0110.00716.67
7.4.90.0100.00916.66
7.4.80.0090.00919.39
7.4.70.0060.01216.80
7.4.60.0090.00616.63
7.4.50.0060.01216.48
7.4.40.0150.00716.71
7.4.10.0060.01016.86
7.4.00.0080.01115.87
7.3.330.0060.00013.30
7.3.320.0060.00013.38
7.3.310.0030.00516.41
7.3.300.0000.00716.39
7.3.290.0050.00316.48
7.3.280.0090.00716.43
7.3.260.0090.01216.61
7.3.240.0120.00716.57
7.3.230.0090.00916.45
7.3.210.0180.00016.72
7.3.200.0030.01516.54
7.3.190.0100.00716.80
7.3.180.0030.01416.76
7.3.170.0100.00616.83
7.3.160.0070.01016.74
7.3.130.0140.00416.50
7.3.120.0040.01416.52
7.3.110.0060.01016.63
7.3.100.0090.00916.68
7.3.90.0040.01216.49
7.3.80.0070.00716.53
7.3.70.0070.00716.40
7.3.60.0030.01316.43
7.3.50.0070.00716.40
7.3.40.0060.00916.51
7.3.30.0060.01216.38
7.3.20.0070.01018.28
7.3.10.0030.01318.14
7.3.00.0120.00318.27
7.2.330.0030.01616.84
7.2.320.0130.00617.09
7.2.310.0030.01716.54
7.2.300.0160.00016.98
7.2.290.0160.00316.73
7.2.260.0080.01116.99
7.2.250.0110.01016.99
7.2.240.0100.01016.56
7.2.230.0110.00417.00
7.2.220.0040.01216.60
7.2.210.0040.00716.45
7.2.200.0000.01516.73
7.2.190.0090.00616.79
7.2.180.0070.01016.93
7.2.170.0080.00816.81
7.2.160.0130.00316.82
7.2.150.0060.00918.79
7.2.140.0040.00818.47
7.2.130.0090.00618.63
7.2.120.0080.00818.63
7.2.110.0060.00618.62
7.2.100.0110.00916.42
7.2.90.0190.00716.71
7.2.80.0660.01016.68
7.2.70.0080.00717.03
7.2.60.0530.00816.87
7.2.50.0080.01016.88
7.2.40.1080.00716.68
7.2.30.0060.01116.84
7.2.20.0830.00816.83
7.2.10.0130.00716.69
7.2.00.0220.01116.82
7.1.330.0090.00917.48
7.1.320.0030.00617.77
7.1.310.0040.01117.50
7.1.300.0030.00617.46
7.1.290.0040.01117.75
7.1.280.0060.00617.51
7.1.270.0100.00717.56
7.1.260.0000.01017.64
7.1.250.0060.00617.51
7.1.240.0030.00917.66
7.1.230.0090.00617.48
7.1.220.0800.00815.58
7.1.210.0840.00715.67
7.1.200.0170.00915.71
7.1.190.0450.01015.52
7.1.180.0080.00915.45
7.1.170.0550.00715.59
7.1.160.0610.00615.50
7.1.150.0680.00715.66
7.1.140.0250.00615.58
7.1.130.0450.01015.69
7.1.120.0420.00915.52
7.1.110.0250.00815.71
7.1.100.0450.00915.63
7.1.90.0060.01115.63
7.1.80.0090.00715.76
7.1.70.0480.00515.56
7.1.60.0200.00824.69
7.1.50.0530.00924.54
7.1.40.2220.00824.74
7.1.30.0820.00524.56
7.1.20.7490.01024.61
7.1.10.9710.00615.42
7.1.00.3850.00715.59
7.0.330.0090.00617.23
7.0.320.0100.00317.23
7.0.310.0110.00717.29
7.0.300.0030.01216.97
7.0.290.0120.00617.09
7.0.280.0080.00817.03
7.0.270.0070.00717.19
7.0.260.0040.01417.15
7.0.250.0000.01817.25
7.0.240.0070.00617.26
7.0.230.0090.00617.29
7.0.220.0030.01217.18
7.0.210.0090.00917.14
7.0.200.0070.00717.11
7.0.190.0070.01017.04
7.0.180.0000.01517.28
7.0.170.0070.00317.10
7.0.160.0000.01317.32
7.0.150.0110.00416.94
7.0.140.0060.00317.09
7.0.130.0000.01417.04
7.0.120.0060.00917.09
7.0.110.0070.00717.01
7.0.100.0070.00717.17
7.0.90.0030.00717.18
7.0.80.0070.00817.03
7.0.70.0100.00717.33
7.0.60.0070.00717.13
7.0.50.0030.01016.97
7.0.40.0000.00915.00
7.0.30.0030.01015.21
7.0.20.0030.01015.10
7.0.10.0060.00315.11
7.0.00.0060.00915.24
5.6.400.0070.00315.98
5.6.390.0040.00816.03
5.6.380.0090.00415.23
5.6.370.0060.00616.02
5.6.360.0050.00516.08
5.6.350.0000.01116.05
5.6.340.0000.01116.18
5.6.330.0070.01016.09
5.6.320.0070.01016.20
5.6.310.0060.00915.93
5.6.300.0040.00716.06
5.6.290.0100.00716.14
5.6.280.0080.00816.23
5.6.270.0040.01216.04
5.6.260.0090.00616.05
5.6.250.0060.00616.24
5.6.240.0120.00416.16
5.6.230.0060.00915.85
5.6.220.0090.00616.27
5.6.210.0070.00716.16
5.6.200.0040.00816.01
5.6.190.0160.00016.14
5.6.180.0000.01016.04
5.6.170.0000.01716.03
5.6.160.0070.00315.96
5.6.150.0030.00716.00
5.6.140.0090.00016.07
5.6.130.0060.00616.11
5.6.120.0090.00615.97
5.6.110.0070.00716.08
5.6.100.0070.00716.09
5.6.90.0030.00615.85
5.6.80.0060.00316.13
5.6.70.0000.01216.06
5.6.60.0090.00315.95
5.6.50.0100.00316.07
5.6.40.0030.01315.75
5.6.30.0070.00715.89
5.6.20.0000.01316.07
5.6.10.0100.00316.00
5.6.00.0030.01216.01

preferences:
59.68 ms | 400 KiB | 5 Q