3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<tag></tag>'); echo 'An empty SimpleXMLElement is '; var_export($xml); echo "\n"; $xml = new SimpleXMLElement('<tag>data</tag>'); echo 'A SimpleXMLElement with data is '; var_export($xml); echo "\n"; $obj = new stdClass(); echo 'An empty stdClass is '; var_export($obj);

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.4.20.0030.00617.99
8.4.10.0060.00317.78
8.3.150.0090.00918.84
8.3.140.0040.00419.09
8.3.130.0130.00318.39
8.3.120.0060.00320.79
8.3.110.0090.00020.94
8.3.100.0030.00616.76
8.3.90.0040.00426.77
8.3.80.0040.00816.65
8.3.70.0140.00716.75
8.3.60.0090.00616.63
8.3.50.0270.00723.06
8.3.40.0030.01418.88
8.3.30.0070.00719.22
8.3.20.0120.00620.34
8.3.10.0040.00423.78
8.3.00.0080.00017.63
8.2.260.0070.00717.45
8.2.250.0000.00816.79
8.2.240.0060.00319.13
8.2.230.0080.00022.58
8.2.220.0060.00324.06
8.2.210.0100.00326.77
8.2.200.0060.00316.75
8.2.190.0150.00017.13
8.2.180.0090.00617.00
8.2.170.0150.00022.96
8.2.160.0100.00320.69
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0070.00726.16
8.2.120.0080.00021.07
8.2.110.0080.00322.29
8.2.100.0090.00319.82
8.2.90.0000.00817.75
8.2.80.0050.00318.95
8.2.70.0030.00617.75
8.2.60.0080.00018.05
8.2.50.0000.00918.07
8.2.40.0040.00718.25
8.2.30.0030.00618.11
8.2.20.0020.00517.80
8.2.10.0060.00318.24
8.2.00.0000.00717.77
8.1.310.0110.00716.44
8.1.300.0050.00319.98
8.1.290.0040.00730.84
8.1.280.0160.00325.92
8.1.270.0040.00423.91
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00020.70
8.1.230.0090.00317.77
8.1.220.0000.00817.80
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0030.00617.36
8.1.180.0080.00018.10
8.1.170.0090.00018.77
8.1.160.0050.00219.05
8.1.150.0000.00918.88
8.1.140.0040.00417.45
8.1.130.0050.00317.93
8.1.120.0040.00317.67
8.1.110.0040.00417.52
8.1.100.0040.00417.47
8.1.90.0050.00217.58
8.1.80.0040.00417.68
8.1.70.0000.00717.53
8.1.60.0000.00917.75
8.1.50.0000.00817.70
8.1.40.0050.00317.67
8.1.30.0030.00617.73
8.1.20.0000.00717.79
8.1.10.0050.00317.64
8.1.00.0030.00617.61
8.0.300.0000.01218.77
8.0.290.0080.00016.88
8.0.280.0040.00418.58
8.0.270.0080.00017.40
8.0.260.0000.00717.46
8.0.250.0000.00717.04
8.0.240.0030.00317.05
8.0.230.0040.00417.13
8.0.220.0000.00717.06
8.0.210.0060.00316.93
8.0.200.0000.00617.02
8.0.190.0050.00317.02
8.0.180.0000.00717.10
8.0.170.0030.00616.96
8.0.160.0000.00717.12
8.0.150.0050.00317.06
8.0.140.0050.00216.98
8.0.130.0050.00313.46
8.0.120.0050.00316.91
8.0.110.0030.00617.04
8.0.100.0030.00516.93
8.0.90.0000.00716.91
8.0.80.0110.00317.05
8.0.70.0040.00416.79
8.0.60.0050.00216.84
8.0.50.0070.00017.08
8.0.30.0090.01017.13
8.0.20.0090.01017.40
8.0.10.0080.00017.15
8.0.00.0110.00916.94
7.4.330.0000.00515.27
7.4.320.0060.00016.63
7.4.300.0000.00616.70
7.4.290.0000.00816.71
7.4.280.0040.00416.73
7.4.270.0030.00316.60
7.4.260.0000.00716.63
7.4.250.0040.00416.57
7.4.240.0040.00416.63
7.4.230.0080.00016.40
7.4.220.0070.01116.74
7.4.210.0060.01216.80
7.4.200.0000.00716.83
7.4.160.0030.01316.55
7.4.150.0030.01617.40
7.4.140.0090.00817.86
7.4.130.0060.01216.65
7.4.120.0130.00416.56
7.4.110.0070.01016.79
7.4.100.0090.00916.66
7.4.90.0070.01016.44
7.4.80.0180.00619.39
7.4.70.0160.00316.66
7.4.60.0050.01316.63
7.4.50.0000.00416.67
7.4.40.0060.00916.75
7.4.30.0130.01016.76
7.4.00.0120.00614.89
7.3.330.0000.00713.13
7.3.320.0050.00013.26
7.3.310.0070.00016.32
7.3.300.0000.00616.34
7.3.290.0060.01016.40
7.3.280.0070.00916.29
7.3.270.0140.00317.40
7.3.260.0210.00616.57
7.3.250.0100.00716.49
7.3.240.0100.00716.30
7.3.230.0100.00716.39
7.3.210.0140.00416.66
7.3.200.0110.00819.39
7.3.190.0110.00716.30
7.3.180.0040.01216.38
7.3.170.0080.00816.59
7.3.160.0100.00616.42
7.3.120.0080.00814.60
7.3.110.0100.00814.55
7.3.100.0070.00514.78
7.3.90.0070.00614.66
7.3.80.0030.01014.87
7.3.70.0040.01014.65
7.3.60.0080.00814.89
7.3.50.0090.00614.67
7.3.40.0040.00714.75
7.3.30.0030.01114.77
7.3.20.0040.00916.58
7.3.10.0090.00616.62
7.3.00.0050.00816.65
7.2.330.0070.01116.69
7.2.320.0170.00616.75
7.2.310.0040.01516.79
7.2.300.0090.00616.79
7.2.290.0060.01216.61
7.2.240.0070.01115.03
7.2.230.0060.01014.95
7.2.220.0110.00615.04
7.2.210.0070.00315.20
7.2.200.0060.00815.04
7.2.190.0110.00514.99
7.2.180.0070.00814.91
7.2.170.0090.00815.03
7.2.160.0060.00815.09
7.2.150.0080.00816.95
7.2.140.0060.00816.84
7.2.130.0040.00916.90
7.2.120.0080.00816.84
7.2.110.0020.01316.75
7.2.100.0050.00616.89
7.2.90.0050.00917.00
7.2.80.0030.01316.92
7.2.70.0070.00516.77
7.2.60.0120.00616.77
7.2.50.0100.00916.95
7.2.40.0050.00916.97
7.2.30.0060.00816.81
7.2.20.0060.00716.99
7.2.10.0030.00916.80
7.2.00.0080.00616.86
7.1.330.0100.00615.78
7.1.320.0080.00415.79
7.1.310.0030.01015.82
7.1.300.0080.00515.78
7.1.290.0080.00615.69
7.1.280.0070.00615.83
7.1.270.0060.00815.75
7.1.260.0020.00915.76
7.1.250.0050.01015.67
7.1.200.0100.00615.82
7.1.70.0060.00617.03
7.1.60.0080.00319.40
7.1.50.0060.01617.05
7.1.00.0030.07722.43
7.0.200.0000.00916.63
7.0.140.0000.08022.14
7.0.60.0070.06719.90
7.0.50.0130.07317.95
7.0.40.0100.05019.98
7.0.30.0530.03720.31
7.0.20.0230.03320.40
7.0.10.0070.04020.13
7.0.00.0100.07320.32
5.6.210.0070.05720.71
5.6.200.0130.07018.20
5.6.190.0130.08020.64
5.6.180.0230.03720.78
5.6.170.0300.07720.70
5.6.160.0030.07020.50
5.6.150.0030.05318.26
5.6.140.0070.03718.26
5.6.130.0030.04318.26
5.6.120.0100.08021.02
5.6.110.0070.08321.20
5.6.100.0170.07321.16
5.6.90.0030.08720.98
5.6.80.0170.07320.51
5.5.350.0230.07020.51
5.5.340.0200.06718.05
5.5.330.0100.08020.14
5.5.320.0430.04020.40
5.5.310.0330.06020.59
5.5.300.0170.07018.05
5.5.290.0070.03718.05
5.5.280.0070.04021.06
5.5.270.0070.08321.00
5.5.260.0200.07020.77
5.5.250.0000.07020.87
5.5.240.0230.06720.38
5.4.450.0130.04719.30
5.4.440.0230.05319.26
5.4.430.0200.04719.56
5.4.420.0230.03719.59
5.4.410.0400.04719.36
5.4.400.0230.04019.00
5.4.390.0170.05019.27
5.4.380.0630.05718.66
5.4.370.0370.06318.76
5.4.360.0330.05318.75
5.4.350.0430.05318.73
5.4.340.0430.04318.55
5.4.320.0070.03512.60
5.4.310.0040.04612.59
5.4.300.0080.04112.59
5.4.290.0100.03312.59
5.4.280.0080.04312.49
5.4.270.0050.03812.49
5.4.260.0020.04212.49
5.4.250.0060.03912.49
5.4.240.0060.03812.49
5.4.230.0100.03612.48
5.4.220.0040.03712.48
5.4.210.0090.03712.48
5.4.200.0080.04012.48
5.4.190.0070.04012.48
5.4.180.0040.03912.48
5.4.170.0080.03712.49
5.4.160.0050.03712.48
5.4.150.0070.04012.48
5.4.140.0030.04112.17
5.4.130.0040.03812.15
5.4.120.0110.03412.11
5.4.110.0040.03612.11
5.4.100.0080.03412.11
5.4.90.0060.03512.11
5.4.80.0050.03712.11
5.4.70.0060.03512.11
5.4.60.0080.04112.11
5.4.50.0100.03012.10
5.4.40.0060.03312.09
5.4.30.0070.03412.09
5.4.20.0040.03812.08
5.4.10.0030.03712.08
5.4.00.0060.04211.57
5.3.290.0070.04212.86
5.3.280.0070.03912.79
5.3.270.0070.03812.80
5.3.260.0060.03912.80
5.3.250.0070.03812.80
5.3.240.0060.04112.80
5.3.230.0070.03512.80
5.3.220.0090.03812.77
5.3.210.0110.03612.77
5.3.200.0030.03912.77
5.3.190.0030.04112.77
5.3.180.0050.03612.77
5.3.170.0060.03612.77
5.3.160.0050.03612.77
5.3.150.0040.03712.76
5.3.140.0040.03712.75
5.3.130.0050.04012.75
5.3.120.0040.04012.75
5.3.110.0020.04212.75
5.3.100.0080.03412.23
5.3.90.0040.03812.22
5.3.80.0060.03612.20
5.3.70.0060.03512.20
5.3.60.0040.03612.19
5.3.50.0130.03612.14
5.3.40.0060.04112.14
5.3.30.0040.03612.10
5.3.20.0070.03411.88
5.3.10.0040.03611.85
5.3.00.0080.03411.83
5.2.170.0030.0319.33
5.2.160.0060.0299.32
5.2.150.0040.0449.33
5.2.140.0040.0319.32
5.2.130.0040.0299.29
5.2.120.0070.0259.29
5.2.110.0060.0289.30
5.2.100.0040.0299.29
5.2.90.0050.0319.29
5.2.80.0050.0299.29
5.2.70.0060.0289.29
5.2.60.0020.0329.24
5.2.50.0040.0309.21
5.2.40.0100.0299.18
5.2.30.0070.0289.16
5.2.20.0030.0299.15
5.2.10.0030.0309.07
5.2.00.0030.0308.93
5.1.60.0030.0338.21
5.1.50.0050.0298.20
5.1.40.0070.0278.19
5.1.30.0050.0298.54
5.1.20.0030.0278.56
5.1.10.0040.0268.27
5.1.00.0040.0268.27
5.0.50.0050.0196.75
5.0.40.0060.0176.62
5.0.30.0030.0306.43
5.0.20.0050.0236.40
5.0.10.0030.0216.38
5.0.00.0090.0396.38
4.4.90.0050.0184.78
4.4.80.0020.0154.76
4.4.70.0040.0144.76
4.4.60.0010.0174.75
4.4.50.0040.0144.77
4.4.40.0030.0254.71
4.4.30.0030.0154.76
4.4.20.0000.0194.85
4.4.10.0030.0154.85
4.4.00.0030.0244.76
4.3.110.0040.0144.67
4.3.100.0010.0164.66
4.3.90.0020.0174.63
4.3.80.0010.0284.58
4.3.70.0040.0174.63
4.3.60.0020.0154.63
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0000.0183.29
4.3.20.0010.0183.25
4.3.10.0010.0183.22
4.3.00.0070.01315.97

preferences:
36.26 ms | 403 KiB | 5 Q