3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <translations> <translation id="title"> <english name="name1" ad="ad1">Hello there, how are you?</english> <italian name="name2" ad="ad2">Ciao, come stai?</italian> </translation> <translation id="text2"> <english name="name3" ad="ad4">222Hello there, how are you?</english> <italian name="name3" ad="ad4">222Ciao, come stai?</italian> </translation> <translation id="text3"> <english name="name5" ad="ad5">333Hello there, how are you?</english> <italian name="name6" ad="ad6">333Ciao, come stai?</italian> </translation> </translations>'; $xml = new SimpleXMLElement($xml); echo $xml->translations->translation['title']->english['ad']; echo $xml->translations->translation['text3']->italian['name'];

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.78
8.3.50.0070.01421.26
8.3.40.0150.00419.04
8.3.30.0110.00419.25
8.3.20.0080.00020.43
8.3.10.0080.00023.90
8.3.00.0050.00319.50
8.2.180.0130.00717.25
8.2.170.0090.00622.96
8.2.160.0050.00820.72
8.2.150.0100.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0030.00622.47
8.2.110.0060.00322.36
8.2.100.0080.00418.00
8.2.90.0040.00419.47
8.2.80.0030.00517.98
8.2.70.0060.00317.75
8.2.60.0030.00618.29
8.2.50.0000.00818.07
8.2.40.0060.00320.14
8.2.30.0000.00718.36
8.2.20.0040.00418.04
8.2.10.0070.00018.33
8.2.00.0040.00417.99
8.1.280.0090.00925.92
8.1.270.0030.00624.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00324.00
8.1.230.0040.00719.28
8.1.220.0070.00017.79
8.1.210.0080.00018.77
8.1.200.0030.00617.47
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0070.00218.56
8.1.160.0000.00722.16
8.1.150.0040.00418.95
8.1.140.0040.00417.59
8.1.130.0030.00317.93
8.1.120.0040.00317.63
8.1.110.0040.00417.54
8.1.100.0000.00717.56
8.1.90.0040.00417.65
8.1.80.0000.00717.59
8.1.70.0000.00817.66
8.1.60.0000.00817.82
8.1.50.0000.00817.60
8.1.40.0040.00417.75
8.1.30.0030.00517.66
8.1.20.0040.00417.89
8.1.10.0000.00717.68
8.1.00.0080.00017.73
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0030.00318.64
8.0.270.0040.00417.37
8.0.260.0000.00717.43
8.0.250.0070.00017.22
8.0.240.0030.00317.10
8.0.230.0070.00017.19
8.0.220.0030.00316.99
8.0.210.0080.00017.06
8.0.200.0040.00417.09
8.0.190.0040.00417.10
8.0.180.0080.00017.04
8.0.170.0060.00317.12
8.0.160.0000.00717.21
8.0.150.0000.00816.94
8.0.140.0070.00017.14
8.0.130.0030.00313.52
8.0.120.0030.00516.98
8.0.110.0040.00417.13
8.0.100.0040.00417.12
8.0.90.0050.00317.21
8.0.80.0000.01617.22
8.0.70.0000.00716.91
8.0.60.0070.00016.96
8.0.50.0080.00017.08
8.0.30.0110.00917.15
8.0.20.0080.01117.40
8.0.10.0000.00717.17
8.0.00.0080.00816.86
7.4.330.0000.00515.41
7.4.320.0020.00516.69
7.4.300.0030.00316.73
7.4.290.0040.00416.84
7.4.280.0000.00716.64
7.4.270.0000.00716.79
7.4.260.0030.00316.86
7.4.250.0000.00716.79
7.4.240.0030.00416.78
7.4.230.0020.00516.84
7.4.220.0040.01416.87
7.4.210.0100.01016.91
7.4.200.0000.00716.90
7.4.160.0150.00316.81
7.4.150.0110.00917.40
7.4.140.0070.01117.86
7.4.130.0120.00916.72
7.4.120.0070.01016.79
7.4.110.0070.01016.87
7.4.100.0120.00616.61
7.4.90.0070.01016.71
7.4.80.0040.01219.39
7.4.70.0060.01116.69
7.4.60.0100.00616.73
7.4.50.0060.00016.97
7.4.40.0070.01016.52
7.4.30.0090.01416.73
7.4.00.0040.01114.93
7.3.330.0000.00513.41
7.3.320.0030.00313.38
7.3.310.0040.00416.57
7.3.300.0040.00416.51
7.3.290.0040.01116.50
7.3.280.0060.01216.54
7.3.270.0150.00617.40
7.3.260.0170.00016.58
7.3.250.0080.00816.65
7.3.240.0150.00616.50
7.3.230.0150.00816.54
7.3.210.0100.00716.87
7.3.200.0140.00419.39
7.3.190.0060.01616.58
7.3.180.0210.00016.61
7.3.170.0030.01316.64
7.3.160.0080.00816.53
7.2.330.0100.00616.74
7.2.320.0150.00316.73
7.2.310.0120.00616.50
7.2.300.0060.00916.96
7.2.290.0140.00716.90
7.2.00.0030.00919.39
7.1.100.0090.00318.09
7.1.70.0000.00717.34
7.1.60.0070.01819.11
7.1.50.0040.01516.58
7.1.00.0030.07722.59
7.0.200.0000.00916.98
7.0.140.0070.07322.05
7.0.60.0070.07319.88
7.0.50.0100.03717.89
7.0.40.0000.08020.45
7.0.30.0300.05020.16
7.0.20.0200.05720.20
7.0.10.0070.09020.30
7.0.00.0070.08720.40
5.6.280.0130.06721.13
5.6.210.0100.06720.67
5.6.200.0130.07718.30
5.6.190.0100.07720.50
5.6.180.0230.07020.49
5.6.170.0500.03020.66
5.6.160.0030.06020.68
5.6.150.0100.04018.29
5.6.140.0100.08018.33
5.6.130.0130.06018.25
5.6.120.0030.09321.01
5.6.110.0130.07721.18
5.6.100.0070.05721.18
5.6.90.0200.06721.17
5.6.80.0030.08320.39
5.6.70.1100.06720.55
5.5.350.0200.08020.50
5.5.340.0030.04018.09
5.5.330.0070.08020.27
5.5.320.0370.07020.29
5.5.310.0270.03720.35
5.5.300.0130.07318.05
5.5.290.0100.03318.05
5.5.280.0030.08720.93
5.5.270.0100.06721.05
5.5.260.0100.06720.98
5.5.250.0130.07720.56
5.5.240.0330.06720.14
5.4.450.0700.07719.36
5.4.440.0700.05719.68
5.4.430.0930.06319.64
5.4.420.1030.04719.49
5.4.410.0830.05719.54
5.4.400.1170.04719.32
5.4.390.0700.05019.32
5.4.380.0930.05019.02
5.4.370.0670.06318.98
5.4.360.1070.06719.02
5.4.350.0730.06319.19
5.4.340.0060.03412.13
5.4.320.0050.03612.61
5.4.310.0040.04512.61
5.4.300.0050.03612.61
5.4.290.0060.03612.61
5.4.280.0080.03212.51
5.4.270.0050.03612.51
5.4.260.0050.03712.51
5.4.250.0070.04512.51
5.4.240.0080.03812.51
5.4.230.0030.03912.50
5.4.220.0030.03812.50
5.4.210.0040.03712.50
5.4.200.0060.03612.50
5.4.190.0060.03412.50
5.4.180.0040.03712.50
5.4.170.0090.03212.52
5.4.160.0050.04312.51
5.4.150.0030.03712.50
5.4.140.0060.03612.18
5.4.130.0040.03612.17
5.4.120.0040.03612.13
5.4.110.0060.03712.13
5.4.100.0070.03612.13
5.4.90.0040.03712.13
5.4.80.0070.04212.13
5.4.70.0070.03512.12
5.4.60.0060.03812.12
5.4.50.0050.03412.13
5.4.40.0040.04212.11
5.4.30.0050.04212.11
5.4.20.0050.03612.11
5.4.10.0080.03812.11
5.4.00.0070.03411.59
5.3.290.0040.04712.89
5.3.280.0060.03712.82
5.3.270.0060.03712.82
5.3.260.0050.04512.82
5.3.250.0020.03912.82
5.3.240.0060.04712.82
5.3.230.0080.03612.82
5.3.220.0030.04012.79
5.3.210.0040.04212.79
5.3.200.0090.03512.78
5.3.190.0060.03712.79
5.3.180.0080.04112.79
5.3.170.0040.04312.78
5.3.160.0060.03512.78
5.3.150.0040.03912.78
5.3.140.0020.03912.77
5.3.130.0030.04012.77
5.3.120.0040.03912.77
5.3.110.0060.03812.77
5.3.100.0070.03412.25
5.3.90.0040.03712.23
5.3.80.0070.03412.22
5.3.70.0100.03112.23
5.3.60.0080.03412.21
5.3.50.0060.03612.16
5.3.40.0040.03812.16
5.3.30.0090.03312.13
5.3.20.0070.03211.90
5.3.10.0060.04111.87
5.3.00.0030.03811.85
5.2.170.0060.0299.36
5.2.160.0050.0309.36
5.2.150.0040.0319.36
5.2.140.0060.0359.36
5.2.130.0020.0339.32
5.2.120.0060.0269.32
5.2.110.0050.0299.32
5.2.100.0030.0299.32
5.2.90.0040.0299.31
5.2.80.0050.0319.31
5.2.70.0040.0319.31
5.2.60.0040.0319.26
5.2.50.0040.0319.23
5.2.40.0040.0319.20
5.2.30.0060.0289.18
5.2.20.0060.0279.17
5.2.10.0030.0309.10
5.2.00.0040.0308.95
5.1.60.0040.0298.23
5.1.50.0020.0268.23
5.1.40.0040.0248.21
5.1.30.0050.0258.56
5.1.20.0050.0268.58
5.1.10.0070.0238.30
5.1.00.0000.0298.30
5.0.50.0020.0226.79
5.0.40.0040.0196.64
5.0.30.0050.0306.46
5.0.20.0030.0206.43
5.0.10.0040.0196.41
5.0.00.0030.0376.40
4.4.90.0010.0194.78
4.4.80.0030.0154.75
4.4.70.0020.0184.76
4.4.60.0020.0164.75
4.4.50.0020.0174.77
4.4.40.0060.0254.71
4.4.30.0030.0214.75
4.4.20.0020.0174.84
4.4.10.0040.0154.85
4.4.00.0030.0244.76
4.3.110.0030.0154.67
4.3.100.0010.0174.66
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0040.0134.63
4.3.40.0020.0254.54
4.3.30.0000.0183.29
4.3.20.0040.0143.27
4.3.10.0010.0163.22
4.3.00.0100.0206.91

preferences:
33.59 ms | 401 KiB | 5 Q