3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<result total="26" start="0" count="10"/>'; $dom = new DOMDocument(); $dom->loadXml($xml); $xpath = new DOMXpath($dom); var_dump( $total = $xpath->evaluate('number(/*/@total)'), $start = $xpath->evaluate('number(/*/@start)'), $count = $xpath->evaluate('number(/*/@count)') );

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.0080.00817.00
8.3.50.0120.00522.18
8.3.40.0120.00318.96
8.3.30.0150.00719.46
8.3.20.0100.00720.62
8.3.10.0000.00824.16
8.3.00.0000.01020.16
8.2.180.0110.00717.13
8.2.170.0150.00622.96
8.2.160.0140.00320.85
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00319.61
8.2.110.0030.00622.75
8.2.100.0090.00318.39
8.2.90.0050.00319.55
8.2.80.0080.00017.97
8.2.70.0000.00817.88
8.2.60.0000.01418.18
8.2.50.0040.00718.07
8.2.40.0050.00320.57
8.2.30.0030.00518.57
8.2.20.0040.00418.11
8.2.10.0040.00418.47
8.2.00.0000.01019.80
8.1.280.0070.01125.92
8.1.270.0050.00324.39
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00622.63
8.1.230.0090.00319.62
8.1.220.0000.00818.03
8.1.210.0030.00518.77
8.1.200.0030.00617.73
8.1.190.0000.00817.63
8.1.180.0060.00318.10
8.1.170.0060.00318.82
8.1.160.0000.00722.45
8.1.150.0000.00718.88
8.1.140.0080.00017.84
8.1.130.0040.00418.30
8.1.120.0000.00717.96
8.1.110.0040.00417.96
8.1.100.0000.00717.83
8.1.90.0000.00717.97
8.1.80.0000.00817.96
8.1.70.0030.00317.91
8.1.60.0050.00318.02
8.1.50.0080.00017.98
8.1.40.0000.00817.78
8.1.30.0030.00617.94
8.1.20.0060.00318.18
8.1.10.0000.00817.86
8.1.00.0000.00817.96
8.0.300.0080.00018.77
8.0.290.0000.00717.13
8.0.280.0000.00718.78
8.0.270.0070.00017.74
8.0.260.0030.00317.69
8.0.250.0000.00617.23
8.0.240.0000.00717.23
8.0.230.0000.00717.43
8.0.220.0000.00817.30
8.0.210.0070.00017.17
8.0.200.0000.00617.34
8.0.190.0030.00317.23
8.0.180.0050.00317.20
8.0.170.0060.00317.13
8.0.160.0050.00217.12
8.0.150.0000.00717.16
8.0.140.0030.00517.35
8.0.130.0000.00613.61
8.0.120.0030.00617.32
8.0.110.0040.00417.22
8.0.100.0030.00517.32
8.0.90.0030.00517.26
8.0.80.0070.01417.19
8.0.70.0050.00317.36
8.0.60.0000.00717.26
8.0.50.0040.00417.15
8.0.30.0120.00717.54
8.0.20.0090.01417.47
8.0.10.0080.00017.31
8.0.00.0150.00717.04
7.4.330.0050.00015.45
7.4.320.0030.00316.94
7.4.300.0000.00716.82
7.4.290.0000.00716.91
7.4.280.0000.00717.06
7.4.270.0030.00317.06
7.4.260.0080.00416.89
7.4.250.0000.00716.79
7.4.240.0000.00817.00
7.4.230.0070.00016.96
7.4.220.0030.01616.80
7.4.210.0100.01016.88
7.4.200.0000.00816.93
7.4.160.0090.01216.77
7.4.150.0100.00917.40
7.4.140.0080.00817.86
7.4.130.0080.00916.90
7.4.120.0090.00816.84
7.4.110.0130.00316.76
7.4.100.0140.01116.86
7.4.90.0100.01016.69
7.4.80.0000.01719.39
7.4.70.0110.00616.86
7.4.60.0070.01116.93
7.4.50.0030.00616.97
7.4.40.0080.00816.85
7.4.30.0180.00316.73
7.4.00.0030.01014.86
7.3.330.0000.00613.45
7.3.320.0050.00013.39
7.3.310.0000.00716.39
7.3.300.0030.00316.68
7.3.290.0040.01116.50
7.3.280.0120.00716.58
7.3.270.0100.00617.40
7.3.260.0140.00416.76
7.3.250.0130.00516.66
7.3.240.0140.00416.82
7.3.230.0070.01016.55
7.3.210.0050.01116.46
7.3.200.0150.00619.39
7.3.190.0100.00717.01
7.3.180.0120.00316.71
7.3.170.0120.00416.70
7.3.160.0040.01516.68
7.3.120.0110.00715.32
7.2.330.0140.00316.71
7.2.320.0060.01616.83
7.2.310.0070.01017.09
7.2.300.0100.01316.79
7.2.290.0100.01317.02
7.2.00.0000.01019.70
7.1.200.0030.01015.93
7.1.100.0060.00918.26
7.1.70.0000.00917.26
7.1.60.0110.01419.70
7.1.50.0070.01517.35
7.1.00.0100.07022.79
7.0.200.0000.01017.03
7.0.140.0070.07022.46
7.0.60.0130.08020.34
7.0.50.0100.06018.30
7.0.40.0100.08320.64
7.0.30.0270.05020.36
7.0.20.0300.05020.50
7.0.10.0330.07020.34
7.0.00.0030.04720.43
5.6.280.0000.07721.31
5.6.210.0100.07721.10
5.6.200.0070.03718.47
5.6.190.0030.05020.73
5.6.180.3730.04720.95
5.6.170.0270.05020.83
5.6.160.0030.09020.82
5.6.150.0170.07018.45
5.6.140.0070.07718.44
5.6.130.0030.05018.55
5.6.120.0100.06021.42
5.6.110.0000.04721.35
5.6.100.0000.05021.37
5.6.90.0000.04321.34
5.6.80.0070.08020.88
5.6.70.0300.06020.71
5.5.350.0000.03320.84
5.5.340.0100.07718.26
5.5.330.0070.08020.80
5.5.320.0170.05320.61
5.5.310.0370.07320.52
5.5.300.0130.07718.34
5.5.290.0130.06718.34
5.5.280.0030.04321.16
5.5.270.0130.07721.16
5.5.260.0070.06721.09
5.5.250.0000.04320.86
5.5.240.0030.04320.46
5.4.450.0700.06319.95
5.4.440.1030.06719.76
5.4.430.1170.08319.71
5.4.420.0670.00019.85
5.4.410.0130.05019.36
5.4.400.0170.05718.86
5.4.390.0200.05018.82
5.4.380.0270.05318.79
5.4.370.0630.05319.06
5.4.360.0430.04019.05
5.4.350.0050.04312.25
5.4.340.0210.08412.24
5.4.320.0100.04112.73
5.4.310.0060.04812.73
5.4.300.0050.03812.73
5.4.290.0080.04012.73
5.4.280.0060.03512.63
5.4.270.0050.04312.63
5.4.260.0060.03712.63
5.4.250.0050.04112.63
5.4.240.0060.03612.63
5.4.230.0100.03412.62
5.4.220.0040.03912.62
5.4.210.0040.03712.62
5.4.200.0050.04012.62
5.4.190.0070.03512.62
5.4.180.0080.03312.62
5.4.170.0050.03712.63
5.4.160.0040.03712.62
5.4.150.0090.03312.62
5.4.140.0050.03812.30
5.4.130.0040.03812.29
5.4.120.0060.03612.25
5.4.110.0070.03612.25
5.4.100.0060.03612.25
5.4.90.0090.03512.24
5.4.80.0070.04212.24
5.4.70.0050.03912.24
5.4.60.0060.03412.24
5.4.50.0050.03512.24
5.4.40.0070.03612.23
5.4.30.0070.03812.23
5.4.20.0030.03812.23
5.4.10.0080.03212.23
5.4.00.0090.03411.71
5.3.290.0060.03912.99
5.3.280.0060.03712.93
5.3.270.0090.03912.93
5.3.260.0090.03812.94
5.3.250.0040.03912.93
5.3.240.0080.03812.93
5.3.230.0040.03912.93
5.3.220.0030.04012.90
5.3.210.0050.04012.89
5.3.200.0060.03912.89
5.3.190.0070.03712.90
5.3.180.0050.03812.89
5.3.170.0070.03712.89
5.3.160.0060.03812.89
5.3.150.0050.03712.89
5.3.140.0070.04012.89
5.3.130.0070.03712.88
5.3.120.0080.03712.88
5.3.110.0080.03612.88
5.3.100.0060.03712.36
5.3.90.0120.03912.34
5.3.80.0060.03812.34
5.3.70.0080.03412.34
5.3.60.0040.03712.32
5.3.50.0020.04012.27
5.3.40.0060.03912.27
5.3.30.0060.03512.23
5.3.20.0070.03712.02
5.3.10.0060.03511.97
5.3.00.0080.03811.96
5.2.170.0070.0389.46
5.2.160.0030.0349.46
5.2.150.0100.0399.46
5.2.140.0060.0389.46
5.2.130.0060.0299.42
5.2.120.0060.0279.42
5.2.110.0060.0299.43
5.2.100.0070.0299.42
5.2.90.0060.0299.42
5.2.80.0060.0309.42
5.2.70.0040.0319.41
5.2.60.0090.0359.36
5.2.50.0080.0329.34
5.2.40.0050.0299.31
5.2.30.0060.0299.29
5.2.20.0040.0289.28
5.2.10.0060.0369.20
5.2.00.0090.0239.05
5.1.60.0040.0278.34
5.1.50.0050.0248.34
5.1.40.0030.0258.32
5.1.30.0080.0268.67
5.1.20.0050.0258.70
5.1.10.0070.0228.42
5.1.00.0050.0328.42
5.0.50.0040.0216.81
5.0.40.0020.0296.67
5.0.30.0010.0326.48
5.0.20.0080.0226.45
5.0.10.0020.0246.43
5.0.00.0030.0326.43
4.4.90.0020.0164.78
4.4.80.0030.0184.75
4.4.70.0020.0164.76
4.4.60.0020.0164.75
4.4.50.0040.0144.77
4.4.40.0010.0264.71
4.4.30.0020.0164.76
4.4.20.0020.0154.84
4.4.10.0040.0164.84
4.4.00.0020.0264.76
4.3.110.0010.0254.67
4.3.100.0030.0154.66
4.3.90.0050.0144.63
4.3.80.0080.0224.59
4.3.70.0030.0134.63
4.3.60.0010.0164.63
4.3.50.0050.0184.63
4.3.40.0060.0244.54
4.3.30.0010.0163.28
4.3.20.0030.0143.26
4.3.10.0020.0153.22
4.3.00.0130.0207.57

preferences:
45.54 ms | 401 KiB | 5 Q