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->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.0100.01018.81
8.3.50.0110.01021.32
8.3.40.0090.00618.79
8.3.30.0110.00319.21
8.3.20.0040.00420.50
8.3.10.0080.00023.81
8.3.00.0060.00319.38
8.2.180.0170.00325.92
8.2.170.0100.01019.21
8.2.160.0170.00322.96
8.2.150.0040.00425.66
8.2.140.0100.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00322.46
8.2.110.0030.00622.45
8.2.100.0060.00617.75
8.2.90.0040.00419.47
8.2.80.0000.00818.00
8.2.70.0040.00417.88
8.2.60.0000.00818.18
8.2.50.0040.00418.07
8.2.40.0000.00820.13
8.2.30.0040.00418.28
8.2.20.0000.00818.09
8.2.10.0000.00718.30
8.2.00.0050.00217.98
8.1.280.0090.00625.92
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00924.22
8.1.230.0110.00019.34
8.1.220.0030.00617.91
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.25
8.1.180.0050.00318.10
8.1.170.0030.00718.59
8.1.160.0030.00522.19
8.1.150.0000.00719.08
8.1.140.0070.00017.55
8.1.130.0000.00718.05
8.1.120.0040.00417.52
8.1.110.0040.00417.56
8.1.100.0030.00517.68
8.1.90.0000.00817.54
8.1.80.0080.00017.71
8.1.70.0040.00417.50
8.1.60.0040.00417.71
8.1.50.0000.00817.73
8.1.40.0040.00417.55
8.1.30.0030.00517.62
8.1.20.0000.00717.68
8.1.10.0050.00317.80
8.1.00.0050.00217.65
8.0.300.0040.00418.77
8.0.290.0050.00217.00
8.0.280.0070.00018.56
8.0.270.0040.00417.36
8.0.260.0060.00017.48
8.0.250.0030.00317.31
8.0.240.0060.00017.08
8.0.230.0030.00317.04
8.0.220.0000.00717.01
8.0.210.0080.00017.01
8.0.200.0030.00317.18
8.0.190.0040.00417.08
8.0.180.0000.00817.13
8.0.170.0000.00717.04
8.0.160.0000.00717.08
8.0.150.0000.00716.94
8.0.140.0080.00017.13
8.0.130.0030.00313.52
8.0.120.0040.00416.97
8.0.110.0000.00716.93
8.0.100.0050.00317.15
8.0.90.0080.00017.11
8.0.80.0100.01117.00
8.0.70.0070.00016.98
8.0.60.0040.00417.13
8.0.50.0040.00416.92
8.0.30.0100.01317.24
8.0.20.0140.00517.49
8.0.10.0090.00017.34
8.0.00.0110.00817.02
7.4.330.0000.00515.41
7.4.320.0040.00416.85
7.4.300.0060.00016.75
7.4.290.0030.00316.74
7.4.280.0000.00816.72
7.4.270.0000.00716.84
7.4.260.0050.00316.56
7.4.250.0040.00416.69
7.4.240.0040.00416.76
7.4.230.0000.00716.80
7.4.220.0030.01416.71
7.4.210.0030.01016.84
7.4.200.0040.00416.61
7.4.160.0030.01316.91
7.4.150.0190.00317.40
7.4.140.0120.00817.86
7.4.130.0160.00516.79
7.4.120.0070.01016.66
7.4.110.0090.01316.77
7.4.100.0040.01516.91
7.4.90.0100.00716.77
7.4.80.0120.00619.39
7.4.70.0100.00716.65
7.4.60.0110.01516.75
7.4.50.0060.00316.61
7.4.40.0060.01116.78
7.4.30.0090.01216.69
7.4.00.0090.00615.19
7.3.330.0030.00313.39
7.3.320.0000.00513.20
7.3.310.0050.00216.27
7.3.300.0030.00316.48
7.3.290.0040.01116.49
7.3.280.0080.00716.48
7.3.270.0140.01117.40
7.3.260.0040.02116.85
7.3.250.0080.00916.70
7.3.240.0100.00716.54
7.3.230.0130.00516.54
7.3.210.0090.00616.68
7.3.200.0070.01019.39
7.3.190.0110.01116.54
7.3.180.0100.01016.73
7.3.170.0060.01016.71
7.3.160.0070.01016.46
7.2.330.0070.01016.57
7.2.320.0130.01016.83
7.2.310.0070.01016.94
7.2.300.0080.00816.70
7.2.290.0070.01016.52
7.2.60.0000.01316.86
7.2.00.0040.01219.66
7.1.200.0040.00415.62
7.1.100.0060.00618.42
7.1.70.0040.00417.16
7.1.60.0150.00919.11
7.1.50.0150.00916.55
7.1.00.0030.07722.43
7.0.200.0030.00616.96
7.0.140.0030.07722.15
7.0.60.0100.08319.99
7.0.50.0070.08018.05
7.0.40.0100.04320.06
7.0.30.0230.05720.41
7.0.20.0370.07020.18
7.0.10.0100.08320.15
7.0.00.0170.07020.11
5.6.280.0170.06321.19
5.6.210.0130.07020.59
5.6.200.0100.05718.30
5.6.190.0100.04020.64
5.6.180.0230.08020.75
5.6.170.0270.08020.56
5.6.160.0030.08720.43
5.6.150.0130.07018.29
5.6.140.0070.08018.19
5.6.130.0170.08018.27
5.6.120.0000.09021.23
5.6.110.0030.07321.02
5.6.100.0130.08021.02
5.6.90.0100.07721.00
5.6.80.0030.05320.59
5.6.70.4200.03720.39
5.5.350.0130.08020.51
5.5.340.0030.06318.11
5.5.330.0070.05020.29
5.5.320.0230.08020.37
5.5.310.0330.07320.39
5.5.300.0030.05317.99
5.5.290.0030.04018.11
5.5.280.0100.07720.94
5.5.270.0100.08020.87
5.5.260.0030.08721.06
5.5.250.0100.07720.66
5.5.240.0170.03020.41
5.4.450.0200.06319.54
5.4.440.0900.05719.63
5.4.430.0500.06719.49
5.4.420.0830.05319.53
5.4.410.0830.04719.32
5.4.400.0630.05718.98
5.4.390.1000.05719.21
5.4.380.0200.04318.96
5.4.370.0730.06019.19
5.4.360.0670.05319.38
5.4.350.0930.04018.93
5.4.340.0070.03312.13
5.4.320.0030.04012.61
5.4.310.0080.03712.61
5.4.300.0050.03812.62
5.4.290.0090.03612.61
5.4.280.0060.03412.51
5.4.270.0060.03512.51
5.4.260.0090.04412.51
5.4.250.0090.03512.51
5.4.240.0080.03712.51
5.4.230.0040.03912.50
5.4.220.0010.04012.50
5.4.210.0040.03712.50
5.4.200.0120.03712.50
5.4.190.0060.04512.50
5.4.180.0070.03912.50
5.4.170.0040.04212.51
5.4.160.0080.03712.51
5.4.150.0070.03412.50
5.4.140.0060.03512.19
5.4.130.0060.03512.18
5.4.120.0060.04312.13
5.4.110.0080.04112.13
5.4.100.0050.04112.13
5.4.90.0080.03412.13
5.4.80.0070.04112.13
5.4.70.0060.03712.13
5.4.60.0050.03512.13
5.4.50.0070.03412.12
5.4.40.0080.03212.11
5.4.30.0050.03812.11
5.4.20.0050.04312.11
5.4.10.0070.03712.11
5.4.00.0060.03411.60
5.3.290.0070.04012.88
5.3.280.0090.03412.81
5.3.270.0030.04012.82
5.3.260.0060.03712.83
5.3.250.0070.03612.83
5.3.240.0050.03712.83
5.3.230.0080.03512.82
5.3.220.0080.03512.79
5.3.210.0080.03612.79
5.3.200.0050.03812.78
5.3.190.0060.03612.79
5.3.180.0080.05012.78
5.3.170.0050.03712.79
5.3.160.0050.04812.79
5.3.150.0050.03812.78
5.3.140.0080.03612.77
5.3.130.0110.03612.77
5.3.120.0080.04312.77
5.3.110.0060.04312.77
5.3.100.0050.03812.25
5.3.90.0060.03512.23
5.3.80.0060.03612.22
5.3.70.0110.03112.22
5.3.60.0060.03612.21
5.3.50.0070.03612.16
5.3.40.0080.04212.16
5.3.30.0070.03412.13
5.3.20.0050.03711.90
5.3.10.0060.03411.87
5.3.00.0060.03611.85
5.2.170.0030.0329.36
5.2.160.0060.0279.36
5.2.150.0070.0339.36
5.2.140.0050.0309.36
5.2.130.0070.0269.32
5.2.120.0060.0269.32
5.2.110.0070.0279.32
5.2.100.0060.0299.31
5.2.90.0090.0259.32
5.2.80.0040.0319.31
5.2.70.0030.0329.31
5.2.60.0050.0309.27
5.2.50.0040.0329.23
5.2.40.0040.0309.21
5.2.30.0040.0329.18
5.2.20.0090.0339.17
5.2.10.0030.0329.09
5.2.00.0050.0298.95
5.1.60.0060.0358.23
5.1.50.0070.0328.23
5.1.40.0050.0328.21
5.1.30.0040.0268.57
5.1.20.0040.0278.58
5.1.10.0050.0268.30
5.1.00.0050.0258.30
5.0.50.0040.0216.78
5.0.40.0080.0186.65
5.0.30.0050.0316.46
5.0.20.0010.0216.43
5.0.10.0010.0216.41
5.0.00.0040.0306.40
4.4.90.0020.0164.78
4.4.80.0030.0154.75
4.4.70.0000.0194.75
4.4.60.0040.0164.75
4.4.50.0030.0214.77
4.4.40.0010.0264.71
4.4.30.0030.0154.76
4.4.20.0040.0144.85
4.4.10.0050.0154.85
4.4.00.0030.0254.76
4.3.110.0050.0174.67
4.3.100.0060.0194.66
4.3.90.0040.0194.63
4.3.80.0020.0264.58
4.3.70.0030.0154.63
4.3.60.0040.0134.63
4.3.50.0050.0134.63
4.3.40.0020.0274.54
4.3.30.0020.0223.28
4.3.20.0030.0153.26
4.3.10.0020.0153.21
4.3.00.0130.0236.91

preferences:
50.38 ms | 401 KiB | 5 Q