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); var_dump($xml); echo $xml->translations->translation->english['ad']; echo $xml->translations->translation->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.0150.00618.80
8.3.50.0120.01022.13
8.3.40.0180.00318.96
8.3.30.0070.00719.31
8.3.20.0040.00420.64
8.3.10.0080.00023.90
8.3.00.0000.00819.50
8.2.180.0090.01216.88
8.2.170.0120.00922.96
8.2.160.0070.00720.77
8.2.150.0040.00424.18
8.2.140.0100.00024.66
8.2.130.0030.00626.16
8.2.120.0030.00622.43
8.2.110.0000.01021.28
8.2.100.0060.00618.03
8.2.90.0030.00519.38
8.2.80.0000.00818.00
8.2.70.0080.00417.84
8.2.60.0050.00318.18
8.2.50.0040.00418.07
8.2.40.0000.00818.46
8.2.30.0050.00219.58
8.2.20.0000.00818.02
8.2.10.0000.00718.40
8.2.00.0080.00018.04
8.1.280.0120.00325.92
8.1.270.0080.00023.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.38
8.1.230.0110.00417.64
8.1.220.0000.00818.03
8.1.210.0080.00018.77
8.1.200.0090.00517.25
8.1.190.0090.00317.35
8.1.180.0060.00318.10
8.1.170.0060.00318.79
8.1.160.0070.00319.04
8.1.150.0000.00819.03
8.1.140.0000.00717.67
8.1.130.0050.00318.04
8.1.120.0030.00517.53
8.1.110.0040.00417.65
8.1.100.0000.00717.65
8.1.90.0040.00417.54
8.1.80.0000.00717.57
8.1.70.0000.00717.57
8.1.60.0000.00817.82
8.1.50.0040.00417.49
8.1.40.0030.00617.75
8.1.30.0000.00817.68
8.1.20.0080.00017.65
8.1.10.0070.00017.64
8.1.00.0080.00017.74
8.0.300.0060.00318.77
8.0.290.0050.00517.00
8.0.280.0000.00818.66
8.0.270.0000.00717.39
8.0.260.0030.00317.49
8.0.250.0000.00717.24
8.0.240.0000.00617.24
8.0.230.0040.00417.21
8.0.220.0040.00417.19
8.0.210.0040.00417.16
8.0.200.0060.00017.07
8.0.190.0000.00817.04
8.0.180.0040.00417.22
8.0.170.0080.00017.08
8.0.160.0040.00417.07
8.0.150.0040.00417.16
8.0.140.0050.00217.13
8.0.130.0060.00013.56
8.0.120.0040.00416.97
8.0.110.0000.00817.14
8.0.100.0040.00417.04
8.0.90.0030.00517.00
8.0.80.0070.01017.09
8.0.70.0040.00416.93
8.0.60.0030.00517.01
8.0.50.0000.00717.15
8.0.30.0110.01317.29
8.0.20.0150.00717.40
8.0.10.0030.00517.25
8.0.00.0170.00516.86
7.4.330.0000.00515.35
7.4.320.0000.00616.86
7.4.300.0070.00016.73
7.4.290.0050.00216.77
7.4.280.0040.00416.72
7.4.270.0080.00016.92
7.4.260.0020.00516.74
7.4.250.0070.00016.57
7.4.240.0040.00316.73
7.4.230.0000.00716.54
7.4.220.0090.00916.92
7.4.210.0040.01716.75
7.4.200.0040.00416.92
7.4.160.0070.01016.78
7.4.150.0100.01017.40
7.4.140.0130.00817.86
7.4.130.0110.01016.85
7.4.120.0130.00816.78
7.4.110.0150.00316.67
7.4.100.0050.01516.74
7.4.90.0080.00816.80
7.4.80.0070.01119.39
7.4.70.0070.01016.81
7.4.60.0170.00716.66
7.4.50.0030.00616.49
7.4.40.0120.00616.52
7.4.30.0100.00716.86
7.4.00.0040.00815.20
7.3.330.0000.00513.20
7.3.320.0050.00013.15
7.3.310.0000.00716.57
7.3.300.0050.00216.54
7.3.290.0080.00816.50
7.3.280.0100.01016.48
7.3.270.0170.01517.40
7.3.260.0040.01516.61
7.3.250.0090.01216.61
7.3.240.0150.01116.87
7.3.230.0120.00616.78
7.3.210.0070.01016.68
7.3.200.0190.01519.39
7.3.190.0160.00316.64
7.3.180.0060.01016.65
7.3.170.0090.00916.59
7.3.160.0040.01416.59
7.2.330.0110.00716.93
7.2.320.0070.01116.88
7.2.310.0030.01416.86
7.2.300.0070.01016.55
7.2.290.0140.00816.76
7.2.60.0000.01416.94
7.2.00.0060.00619.43
7.1.200.0060.00616.01
7.1.100.0030.01018.20
7.1.70.0040.00417.22
7.1.60.0100.01619.11
7.1.50.0100.01416.78
7.1.00.0030.07322.53
7.0.200.0080.00016.96
7.0.140.0030.07022.13
7.0.60.0200.07019.97
7.0.50.0130.07317.97
7.0.40.0130.03720.09
7.0.30.0270.08320.27
7.0.20.0130.09320.29
7.0.10.0070.06020.23
7.0.00.0030.08720.26
5.6.280.0000.07321.04
5.6.210.0030.04020.73
5.6.200.0130.07718.27
5.6.190.0100.06720.50
5.6.180.0230.04020.43
5.6.170.0400.04320.74
5.6.160.0100.07320.48
5.6.150.0100.03318.25
5.6.140.0100.07318.23
5.6.130.0170.07318.23
5.6.120.0000.06720.99
5.6.110.0070.07321.00
5.6.100.0030.09021.05
5.6.90.0030.04321.15
5.6.80.0070.05720.41
5.6.70.0170.03020.51
5.5.350.0230.06720.45
5.5.340.0230.06318.10
5.5.330.0030.09020.61
5.5.320.0170.07020.27
5.5.310.0300.04320.49
5.5.300.0100.05018.04
5.5.290.0000.08718.05
5.5.280.0130.07721.05
5.5.270.0170.07720.76
5.5.260.0030.04320.72
5.5.250.0030.04020.76
5.5.240.0070.04320.39
5.4.450.0170.05319.46
5.4.440.0670.07019.65
5.4.430.0100.05319.68
5.4.420.0600.05019.53
5.4.410.0870.04719.16
5.4.400.0630.04718.98
5.4.390.0430.06019.36
5.4.380.0730.04719.19
5.4.370.0930.06319.13
5.4.360.0970.05319.32
5.4.350.0570.05718.96
5.4.340.0030.03712.13
5.4.320.0030.03912.62
5.4.310.0060.03812.62
5.4.300.0060.03712.62
5.4.290.0050.03912.62
5.4.280.0050.03812.52
5.4.270.0060.03712.51
5.4.260.0120.03712.51
5.4.250.0070.03912.51
5.4.240.0100.04812.51
5.4.230.0060.03712.50
5.4.220.0060.03512.50
5.4.210.0120.03412.50
5.4.200.0080.03512.50
5.4.190.0080.03312.50
5.4.180.0070.04012.50
5.4.170.0060.03612.52
5.4.160.0040.03812.51
5.4.150.0050.03612.50
5.4.140.0080.03712.19
5.4.130.0060.03512.18
5.4.120.0090.03712.14
5.4.110.0080.03612.13
5.4.100.0060.03512.13
5.4.90.0070.04012.13
5.4.80.0070.03512.13
5.4.70.0060.03412.13
5.4.60.0030.03712.13
5.4.50.0050.03512.12
5.4.40.0040.04312.11
5.4.30.0060.04712.11
5.4.20.0050.03612.11
5.4.10.0090.03112.11
5.4.00.0050.03711.60
5.3.290.0100.03912.89
5.3.280.0080.03512.82
5.3.270.0050.04012.82
5.3.260.0050.04012.83
5.3.250.0040.03912.83
5.3.240.0070.03612.83
5.3.230.0070.03712.82
5.3.220.0080.03912.79
5.3.210.0050.04112.79
5.3.200.0060.04212.79
5.3.190.0080.03512.79
5.3.180.0070.03912.79
5.3.170.0100.03512.79
5.3.160.0060.03712.79
5.3.150.0060.03812.79
5.3.140.0070.03512.77
5.3.130.0070.03812.77
5.3.120.0080.03812.77
5.3.110.0070.04012.77
5.3.100.0030.04212.26
5.3.90.0090.04212.24
5.3.80.0050.04112.23
5.3.70.0080.03612.23
5.3.60.0080.03412.21
5.3.50.0080.03312.16
5.3.40.0080.03512.16
5.3.30.0090.03112.13
5.3.20.0070.03511.90
5.3.10.0090.03011.87
5.3.00.0060.03511.85
5.2.170.0050.0309.36
5.2.160.0020.0349.36
5.2.150.0060.0309.36
5.2.140.0050.0369.36
5.2.130.0040.0299.32
5.2.120.0020.0309.32
5.2.110.0070.0279.33
5.2.100.0050.0289.32
5.2.90.0030.0309.32
5.2.80.0100.0249.32
5.2.70.0060.0299.31
5.2.60.0120.0239.27
5.2.50.0070.0279.23
5.2.40.0050.0289.21
5.2.30.0080.0319.18
5.2.20.0060.0359.18
5.2.10.0100.0249.10
5.2.00.0050.0358.96
5.1.60.0070.0248.24
5.1.50.0060.0268.24
5.1.40.0040.0288.22
5.1.30.0040.0268.57
5.1.20.0050.0318.59
5.1.10.0030.0268.30
5.1.00.0050.0308.30
5.0.50.0050.0246.79
5.0.40.0030.0196.65
5.0.30.0030.0316.47
5.0.20.0030.0266.44
5.0.10.0030.0256.41
5.0.00.0040.0306.41
4.4.90.0010.0174.78
4.4.80.0040.0184.75
4.4.70.0040.0134.75
4.4.60.0040.0214.76
4.4.50.0080.0194.77
4.4.40.0010.0274.71
4.4.30.0030.0154.76
4.4.20.0010.0174.84
4.4.10.0010.0184.85
4.4.00.0030.0254.76
4.3.110.0030.0164.67
4.3.100.0020.0164.67
4.3.90.0010.0164.63
4.3.80.0040.0234.59
4.3.70.0010.0194.63
4.3.60.0020.0164.63
4.3.50.0030.0154.63
4.3.40.0020.0274.54
4.3.30.0020.0163.29
4.3.20.0020.0163.26
4.3.10.0040.0133.22
4.3.00.0230.0236.91

preferences:
42.17 ms | 401 KiB | 5 Q