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> </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.0080.00618.81
8.3.50.0140.00822.08
8.3.40.0150.00018.84
8.3.30.0110.00419.34
8.3.20.0080.00020.29
8.3.10.0040.00423.77
8.3.00.0040.00419.51
8.2.180.0060.00918.79
8.2.170.0110.00422.96
8.2.160.0100.00320.64
8.2.150.0050.00324.18
8.2.140.0070.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00422.38
8.2.110.0060.00322.38
8.2.100.0060.00618.16
8.2.90.0060.00319.33
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0030.00618.16
8.2.50.0060.00318.07
8.2.40.0040.00420.26
8.2.30.0060.00318.28
8.2.20.0000.00818.08
8.2.10.0030.00518.22
8.2.00.0000.00718.01
8.1.280.0180.00025.92
8.1.270.0030.00524.14
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00624.17
8.1.230.0040.00719.34
8.1.220.0040.00417.88
8.1.210.0050.00318.77
8.1.200.0000.00817.48
8.1.190.0040.00417.64
8.1.180.0090.00318.10
8.1.170.0030.00618.71
8.1.160.0040.00422.17
8.1.150.0000.00918.73
8.1.140.0040.00417.60
8.1.130.0000.00717.61
8.1.120.0030.00517.65
8.1.110.0000.00817.52
8.1.100.0040.00417.61
8.1.90.0040.00417.45
8.1.80.0040.00417.68
8.1.70.0040.00417.52
8.1.60.0000.00817.74
8.1.50.0030.00617.56
8.1.40.0080.00017.63
8.1.30.0040.00417.80
8.1.20.0040.00417.84
8.1.10.0000.00817.61
8.1.00.0000.00717.57
8.0.300.0000.00821.00
8.0.290.0070.00017.30
8.0.280.0000.00718.61
8.0.270.0000.00717.46
8.0.260.0040.00417.06
8.0.250.0030.00517.29
8.0.240.0000.00617.23
8.0.230.0070.00017.25
8.0.220.0070.00016.95
8.0.210.0000.00717.13
8.0.200.0000.00717.19
8.0.190.0040.00417.21
8.0.180.0040.00416.98
8.0.170.0050.00317.14
8.0.160.0000.00817.14
8.0.150.0020.00517.06
8.0.140.0000.00717.12
8.0.130.0030.00313.56
8.0.120.0060.00316.95
8.0.110.0000.00816.96
8.0.100.0070.00016.86
8.0.90.0040.00417.07
8.0.80.0100.00717.14
8.0.70.0040.00417.16
8.0.60.0000.00717.15
8.0.50.0020.00516.95
8.0.30.0110.00917.37
8.0.20.0130.00617.40
8.0.10.0040.00417.24
8.0.00.0080.01017.01
7.4.330.0000.00515.18
7.4.320.0000.00716.76
7.4.300.0040.00416.72
7.4.290.0000.00716.82
7.4.280.0000.00816.63
7.4.270.0070.00016.74
7.4.260.0030.00316.73
7.4.250.0040.00416.67
7.4.240.0020.00516.84
7.4.230.0030.00316.88
7.4.220.0180.00716.61
7.4.210.0030.01716.84
7.4.200.0040.00316.86
7.4.160.0120.00916.82
7.4.150.0170.00917.40
7.4.140.0110.01117.86
7.4.130.0090.01016.68
7.4.120.0130.00516.84
7.4.110.0080.00816.77
7.4.100.0150.00616.61
7.4.90.0100.00716.73
7.4.80.0130.00319.39
7.4.70.0040.01216.55
7.4.60.0150.00316.68
7.4.50.0030.00516.91
7.4.40.0110.00716.57
7.4.30.0080.00816.75
7.4.00.0060.00915.10
7.3.330.0050.00013.14
7.3.320.0000.00513.30
7.3.310.0000.00716.49
7.3.300.0060.00016.51
7.3.290.0080.00716.43
7.3.280.0110.00716.50
7.3.270.0130.00717.40
7.3.260.0110.00816.63
7.3.250.0060.01116.54
7.3.240.0110.00716.64
7.3.230.0090.01316.59
7.3.210.0080.00816.80
7.3.200.0080.00819.39
7.3.190.0090.01016.68
7.3.180.0100.00616.43
7.3.170.0030.01316.59
7.3.160.0150.00316.62
7.3.00.0060.00616.56
7.2.330.0140.00416.93
7.2.320.0140.00416.95
7.2.310.0110.00816.87
7.2.300.0070.01016.83
7.2.290.0110.01316.90
7.2.130.0030.00617.00
7.2.120.0070.00716.80
7.2.110.0000.01016.82
7.2.100.0090.00316.70
7.2.90.0000.01517.07
7.2.80.0040.00816.86
7.2.70.0070.00717.13
7.2.60.0060.00717.01
7.2.50.0030.01217.05
7.2.40.0040.00817.10
7.2.30.0070.00316.86
7.2.20.0070.00416.96
7.2.10.0030.00617.15
7.2.00.0000.01117.99
7.1.250.0160.00315.95
7.1.240.0070.00715.84
7.1.230.0060.00615.86
7.1.220.0070.00415.70
7.1.210.0030.00716.02
7.1.200.0030.00715.77
7.1.190.0060.00315.93
7.1.180.0060.00315.82
7.1.170.0050.00316.13
7.1.160.0030.01215.96
7.1.150.0070.00716.07
7.1.140.0050.00215.93
7.1.130.0000.01015.71
7.1.120.0000.00815.87
7.1.110.0070.00315.73
7.1.100.0020.01017.25
7.1.90.0090.00316.16
7.1.80.0000.00815.88
7.1.70.0040.00916.73
7.1.60.0080.01017.47
7.1.50.0100.00716.56
7.1.40.0070.00715.93
7.1.30.0060.00315.88
7.1.20.0080.00815.80
7.1.10.0030.01015.91
7.1.00.0030.04119.15
7.0.330.0070.00315.43
7.0.320.0060.00315.34
7.0.310.0090.00015.60
7.0.300.0030.00915.34
7.0.290.0030.00715.30
7.0.280.0030.00915.45
7.0.270.0030.00915.43
7.0.260.0040.00415.50
7.0.250.0060.00915.38
7.0.240.0030.01015.50
7.0.230.0030.00615.60
7.0.220.0160.00015.61
7.0.210.0060.00615.51
7.0.200.0070.00216.10
7.0.190.0060.00615.41
7.0.180.0100.00615.70
7.0.170.0060.00315.64
7.0.160.0000.00915.28
7.0.150.0090.00615.62
7.0.140.0010.04018.74
7.0.130.0000.00915.52
7.0.120.0040.01115.58
7.0.110.0000.01515.63
7.0.100.0120.00315.23
7.0.90.0040.00415.73
7.0.80.0000.01015.45
7.0.70.0030.00715.20
7.0.60.0040.04917.80
7.0.50.0030.02516.81
7.0.40.0070.03716.91
7.0.30.0240.03116.80
7.0.20.0120.03516.95
7.0.10.0050.04716.87
7.0.00.0100.03316.92
5.6.380.0060.01014.32
5.6.370.0060.00614.33
5.6.360.0040.00714.14
5.6.350.0040.00714.43
5.6.340.0040.00814.61
5.6.330.0040.00814.59
5.6.320.0110.00314.63
5.6.310.0070.00414.36
5.6.300.0040.00714.32
5.6.290.0090.00014.50
5.6.280.0080.03717.72
5.6.270.0070.00714.32
5.6.260.0110.00714.50
5.6.250.0000.00814.45
5.6.240.0070.00714.30
5.6.230.0070.00714.76
5.6.220.0070.00714.58
5.6.210.0050.04517.52
5.6.200.0070.04316.29
5.6.190.0050.02717.78
5.6.180.0190.03217.36
5.6.170.0150.02217.39
5.6.160.0120.04017.42
5.6.150.0030.02516.26
5.6.140.0120.03816.30
5.6.130.0120.02316.40
5.6.120.0130.04117.97
5.6.110.0150.03817.66
5.6.100.0050.03417.75
5.6.90.0090.03917.85
5.6.80.0030.04717.35
5.6.70.0920.02217.69
5.6.60.0110.00414.09
5.6.50.0090.00914.62
5.6.40.0180.00314.08
5.6.30.0040.00814.41
5.6.20.0180.01414.65
5.6.10.0070.00714.45
5.6.00.0090.00614.52
5.5.380.0050.00312.93
5.5.370.0000.00612.93
5.5.360.0000.00612.93
5.5.350.0140.01616.64
5.5.340.0080.03515.51
5.5.330.0080.03316.64
5.5.320.0180.04616.64
5.5.310.0180.03816.70
5.5.300.0070.04415.47
5.5.290.0080.02215.46
5.5.280.0110.03016.92
5.5.270.0030.04816.92
5.5.260.0050.03316.89
5.5.250.0020.02316.79
5.5.240.0100.03516.70
5.5.230.0000.01012.93
5.5.220.0000.01212.93
5.5.210.0190.00312.93
5.5.200.0150.00312.93
5.5.190.0160.00312.93
5.5.180.0030.00312.93
5.5.170.0070.00312.93
5.5.160.0040.00712.93
5.5.150.0060.00612.93
5.5.140.0030.01012.93
5.5.130.0090.00312.93
5.5.120.0080.00312.93
5.5.110.0030.00312.93
5.5.100.0110.00412.93
5.5.90.0000.00912.93
5.5.80.0030.00912.93
5.5.70.0050.00312.93
5.5.60.0060.00912.93
5.5.50.0110.00412.93
5.5.40.0000.00712.93
5.5.30.0030.00712.93
5.5.20.0070.00312.93
5.5.10.0000.00712.93
5.5.00.0070.00412.93
5.4.450.0290.03716.11
5.4.440.0380.04316.30
5.4.430.0100.03216.29
5.4.420.0460.03216.29
5.4.410.0480.03316.16
5.4.400.0420.03516.14
5.4.390.0490.03016.14
5.4.380.0520.03415.94
5.4.370.0210.03516.14
5.4.360.0480.03316.03
5.4.350.0470.02716.12
5.4.340.0040.01912.53
5.4.330.0070.00312.93
5.4.320.0080.01912.77
5.4.310.0040.02412.77
5.4.300.0090.02412.77
5.4.290.0060.02312.77
5.4.280.0050.02312.72
5.4.270.0040.02312.72
5.4.260.0050.02212.72
5.4.250.0080.02312.72
5.4.240.0040.02312.72
5.4.230.0100.01912.71
5.4.220.0060.02112.72
5.4.210.0050.02012.71
5.4.200.0020.02312.72
5.4.190.0020.02312.71
5.4.180.0020.02512.71
5.4.170.0020.02412.72
5.4.160.0070.02212.72
5.4.150.0040.02412.71
5.4.140.0060.02112.56
5.4.130.0090.01812.55
5.4.120.0080.01712.53
5.4.110.0040.02212.53
5.4.100.0060.02212.53
5.4.90.0070.02112.53
5.4.80.0020.02512.53
5.4.70.0050.02112.53
5.4.60.0060.01812.53
5.4.50.0050.02212.52
5.4.40.0050.02012.52
5.4.30.0050.02112.52
5.4.20.0030.02412.51
5.4.10.0070.01912.51
5.4.00.0080.02512.26
5.3.290.0030.02512.90
5.3.280.0040.02412.87
5.3.270.0090.02112.88
5.3.260.0040.02112.88
5.3.250.0060.02212.88
5.3.240.0040.02312.88
5.3.230.0040.02412.87
5.3.220.0080.02212.86
5.3.210.0040.02512.86
5.3.200.0040.02312.85
5.3.190.0070.02012.86
5.3.180.0060.02212.86
5.3.170.0060.02312.85
5.3.160.0060.01912.86
5.3.150.0040.02012.85
5.3.140.0100.02212.85
5.3.130.0070.01912.85
5.3.120.0030.02412.85
5.3.110.0090.02112.85
5.3.100.0020.02512.59
5.3.90.0040.02212.58
5.3.80.0020.02312.58
5.3.70.0060.02112.58
5.3.60.0070.01812.57
5.3.50.0070.01912.54
5.3.40.0060.02112.54
5.3.30.0050.02012.53
5.3.20.0050.02012.41
5.3.10.0060.01812.40
5.3.00.0070.01912.39
5.2.170.0020.01911.14
5.2.160.0050.01911.14
5.2.150.0030.02011.14
5.2.140.0070.01711.14
5.2.130.0040.02111.12
5.2.120.0040.02111.12
5.2.110.0080.01511.13
5.2.100.0010.02011.12
5.2.90.0050.02011.12
5.2.80.0030.02011.12
5.2.70.0060.01711.12
5.2.60.0040.01911.10
5.2.50.0040.01811.08
5.2.40.0030.01911.07
5.2.30.0050.01611.05
5.2.20.0030.02311.05
5.2.10.0040.01611.01
5.2.00.0020.01810.94
5.1.60.0020.01510.58
5.1.50.0050.01710.58
5.1.40.0040.01310.57
5.1.30.0050.01410.75
5.1.20.0020.01610.75
5.1.10.0020.01610.62
5.1.00.0050.01310.62
5.0.50.0020.0159.86
5.0.40.0020.0169.78
5.0.30.0020.0169.70
5.0.20.0010.0149.68
5.0.10.0030.0159.67
5.0.00.0020.0209.66
4.4.90.0000.0128.85
4.4.80.0020.0148.84
4.4.70.0010.0108.84
4.4.60.0010.0108.84
4.4.50.0010.0108.85
4.4.40.0030.0138.82
4.4.30.0030.0098.84
4.4.20.0020.0108.89
4.4.10.0010.0108.89
4.4.00.0030.0128.85
4.3.110.0010.0108.80
4.3.100.0030.0128.80
4.3.90.0020.0118.78
4.3.80.0020.0158.76
4.3.70.0010.0098.78
4.3.60.0020.0128.78
4.3.50.0030.0098.78
4.3.40.0030.0158.73
4.3.30.0010.0108.11
4.3.20.0020.0098.09
4.3.10.0020.0098.08
4.3.00.0050.0169.92

preferences:
35.08 ms | 401 KiB | 5 Q