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->translation); 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.0090.00618.80
8.3.50.0130.00721.27
8.3.40.0090.00619.09
8.3.30.0070.00719.35
8.3.20.0040.00420.38
8.3.10.0080.00023.69
8.3.00.0050.00319.75
8.2.180.0130.00325.92
8.2.170.0070.00722.96
8.2.160.0070.00720.60
8.2.150.0040.00424.18
8.2.140.0100.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.48
8.2.110.0030.00622.38
8.2.100.0090.00317.88
8.2.90.0080.00019.33
8.2.80.0050.00317.97
8.2.70.0000.00818.00
8.2.60.0000.00818.28
8.2.50.0040.00418.07
8.2.40.0030.00619.97
8.2.30.0070.00018.35
8.2.20.0030.00517.98
8.2.10.0040.00418.24
8.2.00.0000.00817.98
8.1.280.0090.00625.92
8.1.270.0030.00524.07
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00024.21
8.1.230.0040.00819.26
8.1.220.0000.00817.93
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0030.00617.48
8.1.180.0000.00818.10
8.1.170.0030.00518.70
8.1.160.0000.00722.05
8.1.150.0080.00019.09
8.1.140.0070.00017.64
8.1.130.0080.00017.99
8.1.120.0000.00717.60
8.1.110.0040.00417.48
8.1.100.0000.00717.48
8.1.90.0040.00417.59
8.1.80.0000.00817.59
8.1.70.0040.00417.66
8.1.60.0000.00917.58
8.1.50.0040.00417.49
8.1.40.0040.00417.60
8.1.30.0040.00417.77
8.1.20.0000.00817.84
8.1.10.0000.00817.84
8.1.00.0040.00417.77
8.0.300.0070.00018.77
8.0.290.0040.00417.00
8.0.280.0000.00718.67
8.0.270.0080.00017.46
8.0.260.0000.00617.43
8.0.250.0030.00317.25
8.0.240.0000.00617.22
8.0.230.0040.00417.18
8.0.220.0080.00017.17
8.0.210.0050.00317.12
8.0.200.0000.00717.05
8.0.190.0000.00917.23
8.0.180.0070.00017.14
8.0.170.0000.00817.20
8.0.160.0000.00817.24
8.0.150.0050.00317.07
8.0.140.0030.00516.98
8.0.130.0030.00313.49
8.0.120.0030.00517.14
8.0.110.0000.00717.04
8.0.100.0040.00417.05
8.0.90.0030.00516.93
8.0.80.0090.01217.13
8.0.70.0000.00816.93
8.0.60.0070.00016.90
8.0.50.0050.00217.02
8.0.30.0080.01217.23
8.0.20.0110.00917.50
8.0.10.0040.00417.21
8.0.00.0050.01316.85
7.4.330.0020.00215.34
7.4.320.0030.00316.82
7.4.300.0070.00016.76
7.4.290.0030.00316.66
7.4.280.0040.00416.91
7.4.270.0030.00316.57
7.4.260.0030.00316.79
7.4.250.0040.00416.69
7.4.240.0010.00616.81
7.4.230.0000.00816.77
7.4.220.0120.01316.81
7.4.210.0070.00716.80
7.4.200.0000.00716.84
7.4.160.0060.00916.88
7.4.150.0070.01317.40
7.4.140.0070.01117.86
7.4.130.0090.01216.72
7.4.120.0120.00716.69
7.4.110.0090.00916.81
7.4.100.0140.00816.79
7.4.90.0080.00916.77
7.4.80.0070.01419.39
7.4.70.0070.01416.84
7.4.60.0060.01316.98
7.4.50.0000.00816.47
7.4.40.0090.01317.02
7.4.30.0150.00616.96
7.4.00.0090.00415.05
7.3.330.0000.00613.33
7.3.320.0060.00013.15
7.3.310.0070.00016.57
7.3.300.0030.00316.46
7.3.290.0090.00816.50
7.3.280.0080.01116.50
7.3.270.0100.00817.40
7.3.260.0110.01416.52
7.3.250.0090.00916.65
7.3.240.0080.01216.85
7.3.230.0040.01416.58
7.3.210.0110.00616.64
7.3.200.0130.00319.39
7.3.190.0090.00916.59
7.3.180.0110.01116.50
7.3.170.0030.01416.51
7.3.160.0180.00016.81
7.3.10.0030.01316.60
7.3.00.0000.01016.56
7.2.330.0090.00916.45
7.2.320.0100.01016.53
7.2.310.0120.00616.68
7.2.300.0040.01316.84
7.2.290.0140.00517.03
7.2.130.0030.00716.89
7.2.120.0140.00316.68
7.2.110.0030.00916.77
7.2.100.0030.00916.69
7.2.90.0080.00816.41
7.2.80.0120.00316.86
7.2.70.0060.00916.80
7.2.60.0000.01116.43
7.2.50.0100.00216.56
7.2.40.0040.00816.98
7.2.30.0050.00916.96
7.2.20.0140.00616.68
7.2.10.0110.00716.88
7.2.00.0060.00616.98
7.1.250.0130.00015.65
7.1.200.0040.00415.83
7.1.70.0030.00717.35
7.1.60.0030.02119.11
7.1.50.0120.01217.09
7.1.00.0100.07022.45
7.0.200.0040.00416.96
7.0.140.0000.07322.17
7.0.60.0030.04019.98
7.0.50.0030.08717.93
7.0.40.0070.07020.38
7.0.30.0200.04020.26
7.0.20.0200.04320.11
7.0.10.0270.07720.16
7.0.00.0030.08320.41
5.6.280.0070.07321.08
5.6.210.0000.09320.71
5.6.200.0170.03718.26
5.6.190.0070.04020.81
5.6.180.0330.07720.81
5.6.170.0300.05020.48
5.6.160.0130.07720.44
5.6.150.0030.04018.27
5.6.140.0100.07718.24
5.6.130.0000.04318.29
5.6.120.0070.09021.23
5.6.110.0170.07021.04
5.6.100.0170.07321.16
5.6.90.0070.08021.02
5.6.80.0070.04020.41
5.6.70.4000.04020.43
5.5.350.0130.06320.45
5.5.340.0000.04318.06
5.5.330.0030.06020.57
5.5.320.0270.06320.36
5.5.310.0170.05720.26
5.5.300.0070.04318.05
5.5.290.0100.03318.10
5.5.280.0030.08720.92
5.5.270.0100.08021.07
5.5.260.0130.07720.77
5.5.250.0070.06020.54
5.5.240.0330.06020.33
5.4.450.0700.06319.69
5.4.440.0700.06719.27
5.4.430.0700.06319.70
5.4.420.0070.06319.29
5.4.410.0670.05319.16
5.4.400.0800.05719.32
5.4.390.0870.07018.98
5.4.380.0700.05719.32
5.4.370.0570.05719.33
5.4.360.0730.05719.38
5.4.350.0770.05019.20
5.4.340.0040.03712.13
5.4.320.0090.03312.62
5.4.310.0070.03612.61
5.4.300.0040.03912.62
5.4.290.0060.03712.61
5.4.280.0010.03912.51
5.4.270.0040.03712.52
5.4.260.0060.03712.52
5.4.250.0060.03812.52
5.4.240.0060.03512.51
5.4.230.0070.04212.51
5.4.220.0070.04112.50
5.4.210.0050.03912.50
5.4.200.0080.04012.51
5.4.190.0060.03812.50
5.4.180.0080.03312.50
5.4.170.0070.03412.52
5.4.160.0090.03212.51
5.4.150.0070.03412.50
5.4.140.0060.03612.19
5.4.130.0040.04212.18
5.4.120.0060.04412.13
5.4.110.0070.03412.13
5.4.100.0060.03412.13
5.4.90.0070.03512.13
5.4.80.0050.03612.13
5.4.70.0060.03312.13
5.4.60.0050.03412.13
5.4.50.0030.03812.12
5.4.40.0070.03412.11
5.4.30.0110.03012.11
5.4.20.0070.03312.11
5.4.10.0060.03312.11
5.4.00.0040.03711.60
5.3.290.0070.03812.89
5.3.280.0070.04212.82
5.3.270.0060.03812.83
5.3.260.0080.03612.83
5.3.250.0090.04312.83
5.3.240.0100.03312.83
5.3.230.0050.03812.82
5.3.220.0060.03712.79
5.3.210.0080.03712.79
5.3.200.0080.03512.79
5.3.190.0040.03912.79
5.3.180.0050.03812.79
5.3.170.0060.03612.79
5.3.160.0040.03912.79
5.3.150.0090.03712.79
5.3.140.0070.04312.77
5.3.130.0060.04712.77
5.3.120.0060.04112.77
5.3.110.0050.04212.77
5.3.100.0080.04312.26
5.3.90.0060.04712.24
5.3.80.0050.03712.23
5.3.70.0050.04112.23
5.3.60.0080.04912.22
5.3.50.0060.03812.16
5.3.40.0090.04212.16
5.3.30.0050.03812.13
5.3.20.0050.03711.90
5.3.10.0060.03911.87
5.3.00.0110.03511.85
5.2.170.0040.0359.36
5.2.160.0070.0279.37
5.2.150.0050.0319.37
5.2.140.0030.0329.36
5.2.130.0040.0309.32
5.2.120.0050.0299.32
5.2.110.0030.0309.33
5.2.100.0090.0259.32
5.2.90.0050.0289.32
5.2.80.0030.0319.31
5.2.70.0070.0349.32
5.2.60.0050.0329.27
5.2.50.0060.0289.23
5.2.40.0060.0279.21
5.2.30.0050.0299.18
5.2.20.0040.0289.18
5.2.10.0070.0259.10
5.2.00.0060.0278.95
5.1.60.0080.0288.23
5.1.50.0050.0278.23
5.1.40.0030.0258.21
5.1.30.0090.0208.57
5.1.20.0050.0318.58
5.1.10.0030.0288.30
5.1.00.0050.0288.31
5.0.50.0030.0256.79
5.0.40.0040.0196.65
5.0.30.0040.0316.46
5.0.20.0030.0236.43
5.0.10.0010.0216.41
5.0.00.0040.0326.41
4.4.90.0010.0164.78
4.4.80.0030.0144.76
4.4.70.0020.0154.75
4.4.60.0000.0184.76
4.4.50.0030.0144.77
4.4.40.0030.0244.71
4.4.30.0030.0164.76
4.4.20.0030.0154.85
4.4.10.0010.0174.85
4.4.00.0010.0264.76
4.3.110.0040.0144.67
4.3.100.0020.0154.67
4.3.90.0040.0134.64
4.3.80.0030.0244.58
4.3.70.0030.0134.63
4.3.60.0010.0164.63
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0030.0153.29
4.3.20.0030.0153.26
4.3.10.0000.0183.22
4.3.00.0170.0306.91

preferences:
42.42 ms | 401 KiB | 5 Q