3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<response type="1">' . ' <body>' . ' <station name="Днепропетровск, главный" code="DN0001" />' . ' <station name="Днепропетровск, южный" code="DN0002" />' . ' <station name="Днепродзержинск" code="DN0081" />' . ' </body>' . '</response>'; $xml = new SimpleXMLIterator($xml); echo json_encode($xml);

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.0070.00718.68
8.3.50.0120.00321.33
8.3.40.0110.00718.84
8.3.30.0070.00720.29
8.3.20.0050.00320.84
8.3.10.0050.00321.20
8.3.00.0080.00023.77
8.2.180.0210.00316.63
8.2.170.0140.00022.96
8.2.160.0070.00720.50
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00721.16
8.2.110.0060.00319.45
8.2.100.0000.01218.01
8.2.90.0000.00819.42
8.2.80.0040.00419.54
8.2.70.0000.00817.88
8.2.60.0030.00718.05
8.2.50.0000.00818.07
8.2.40.0030.00718.34
8.2.30.0000.00719.54
8.2.20.0000.00817.75
8.2.10.0060.00317.78
8.2.00.0040.00417.89
8.1.280.0070.01125.92
8.1.270.0050.00323.99
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00722.71
8.1.230.0050.00521.10
8.1.220.0000.00818.77
8.1.210.0040.00419.01
8.1.200.0030.00717.48
8.1.190.0060.00317.66
8.1.180.0030.00618.10
8.1.170.0060.00318.78
8.1.160.0000.00719.10
8.1.150.0060.00318.74
8.1.140.0050.00217.60
8.1.130.0050.00318.04
8.1.120.0020.00517.70
8.1.110.0070.00017.66
8.1.100.0030.00517.62
8.1.90.0070.00017.62
8.1.80.0040.00417.68
8.1.70.0070.00017.63
8.1.60.0060.00317.77
8.1.50.0060.00317.67
8.1.40.0040.00417.73
8.1.30.0040.00417.88
8.1.20.0040.00417.73
8.1.10.0030.00617.76
8.1.00.0000.01017.61
8.0.300.0000.00820.01
8.0.290.0050.00217.30
8.0.280.0040.00418.64
8.0.270.0070.00017.36
8.0.260.0000.00717.00
8.0.250.0070.00017.06
8.0.240.0050.00217.26
8.0.230.0030.00317.15
8.0.220.0040.00417.05
8.0.210.0070.00016.93
8.0.200.0030.00316.99
8.0.190.0050.00317.04
8.0.180.0070.00017.16
8.0.170.0000.00716.91
8.0.160.0040.00417.00
8.0.150.0040.00416.93
8.0.140.0030.00517.01
8.0.130.0030.00313.54
8.0.120.0080.00017.03
8.0.110.0000.00716.96
8.0.100.0050.00316.97
8.0.90.0080.00017.05
8.0.80.0040.01617.09
8.0.70.0040.00416.89
8.0.60.0000.00716.84
8.0.50.0000.00717.05
8.0.30.0090.00917.18
8.0.20.0050.01417.42
8.0.10.0070.00016.98
8.0.00.0150.00516.99
7.4.330.0000.00516.97
7.4.320.0040.00416.59
7.4.300.0000.00616.77
7.4.290.0050.00516.75
7.4.280.0000.00916.61
7.4.270.0030.00316.77
7.4.260.0060.00013.42
7.4.250.0050.00316.56
7.4.240.0040.00416.63
7.4.230.0000.00716.63
7.4.220.0110.01116.75
7.4.210.0090.00616.69
7.4.200.0050.00216.84
7.4.190.0040.00416.82
7.4.160.0100.00616.39
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0070.01016.69
7.4.120.0100.00816.69
7.4.110.0170.00016.54
7.4.100.0150.00316.61
7.4.90.0110.00716.79
7.4.80.0100.00719.39
7.4.70.0090.00916.72
7.4.60.0120.00616.44
7.4.50.0060.00316.51
7.4.40.0060.00922.77
7.4.30.0120.00616.57
7.4.00.0070.00714.81
7.3.330.0030.00313.18
7.3.320.0030.00313.27
7.3.310.0070.00016.42
7.3.300.0050.00216.36
7.3.290.0050.01016.29
7.3.280.0080.00916.33
7.3.270.0040.01217.40
7.3.260.0110.00718.24
7.3.250.0070.01016.38
7.3.240.0100.00716.63
7.3.230.0120.01216.48
7.3.210.0120.00616.66
7.3.200.0090.01219.39
7.3.190.0160.00416.41
7.3.180.0090.00616.39
7.3.170.0040.01216.50
7.3.160.0100.01016.55
7.3.120.0090.00614.79
7.3.10.0040.00716.16
7.3.00.0060.00316.25
7.2.330.0120.00916.89
7.2.320.0090.00916.52
7.2.310.0210.00016.61
7.2.300.0080.00816.83
7.2.290.0150.01016.78
7.2.130.0060.00616.68
7.2.120.0000.01216.31
7.2.110.0100.00616.67
7.2.100.0120.00016.63
7.2.90.0060.00916.90
7.2.80.0090.00416.36
7.2.70.0060.00616.88
7.2.60.0080.00816.82
7.2.50.0090.01216.91
7.2.40.0080.01216.53
7.2.30.0030.01316.57
7.2.20.0000.00916.65
7.2.10.0100.00316.39
7.2.00.0040.00918.07
7.1.250.0030.00715.47
7.1.100.0060.00318.25
7.1.70.0000.00817.20
7.1.60.0060.01919.17
7.1.50.0070.01416.96
7.1.00.0100.04722.53
7.0.200.0000.00716.68
7.0.140.0030.07322.05
7.0.90.0030.07319.92
7.0.80.0030.03720.16
7.0.70.0100.06720.00
7.0.60.0030.08720.02
7.0.50.0000.06720.36
7.0.40.0170.07020.07
7.0.30.0100.04320.28
7.0.20.0130.08320.24
7.0.10.0070.08320.18
7.0.00.0100.08020.23
5.6.280.0030.07321.07
5.6.240.0030.07020.77
5.6.230.0100.03720.79
5.6.220.0070.04320.67
5.6.210.0100.04720.66
5.6.200.0030.05021.29
5.6.190.0130.04721.08
5.6.180.0030.07321.15
5.6.170.0130.07021.28
5.6.160.0100.05721.06
5.6.150.0070.04721.24
5.6.140.0100.08021.15
5.6.130.0100.08021.09
5.6.120.0030.05021.16
5.6.110.0130.07720.97
5.6.100.0130.08721.08
5.6.90.0170.07321.04
5.6.80.0070.08320.53
5.6.70.0030.05020.49
5.6.60.0100.07320.43
5.6.50.0100.05020.47
5.6.40.0100.06720.49
5.6.30.0070.07720.50
5.6.20.0070.04720.62
5.6.10.0100.03720.58
5.6.00.0070.06720.39
5.5.380.0130.07320.58
5.5.370.0130.06720.45
5.5.360.0030.09020.57
5.5.350.0030.07720.44
5.5.340.0030.05020.95
5.5.330.0030.06020.88
5.5.320.0030.05320.90
5.5.310.0070.05320.98
5.5.300.0070.05021.04
5.5.290.0200.08720.94
5.5.280.0070.08720.87
5.5.270.0070.05320.79
5.5.260.0070.06720.77
5.5.250.0130.07320.84
5.5.240.0130.07320.19
5.5.230.0130.06720.37
5.5.220.0070.05720.12
5.5.210.0170.07320.30
5.5.200.0070.05720.16
5.5.190.0030.05720.25
5.5.180.0070.08020.38
5.5.160.0130.07020.35
5.5.150.0000.05320.12
5.5.140.0000.04720.29
5.5.130.0070.03720.33
5.5.120.0070.08320.28
5.5.110.0030.07020.22
5.5.100.0100.05020.11
5.5.90.0070.06320.14
5.5.80.0130.06020.25
5.5.70.0170.07320.25
5.5.60.0030.05720.07
5.5.50.0070.07020.09
5.5.40.0100.06320.20
5.5.30.0070.04020.20
5.5.20.0070.05020.19
5.5.10.0070.07720.23
5.5.00.0070.08020.06
5.4.450.0100.07019.54
5.4.440.0070.07719.58
5.4.430.0130.07719.18
5.4.420.0030.07319.42
5.4.410.0000.04319.38
5.4.400.0100.05719.21
5.4.390.0030.04719.20
5.4.380.0070.07719.17
5.4.370.0070.04719.16
5.4.360.0070.03719.16
5.4.350.0000.08319.12
5.4.340.0000.08319.16
5.4.320.0000.04719.20
5.4.310.0070.07719.16
5.4.300.0070.06019.20
5.4.290.0000.04719.16
5.4.280.0000.04319.17
5.4.270.0030.06019.16
5.4.260.0070.07319.15
5.4.250.0070.07019.17
5.4.240.0130.04019.01
5.4.230.0100.07319.03
5.4.220.0070.07718.85
5.4.210.0070.05019.36
5.4.200.0000.05719.15
5.4.190.0070.04719.16
5.4.180.0070.06019.15
5.4.170.0130.07319.15
5.4.160.0070.04718.89
5.4.150.0030.05019.09
5.4.140.0100.05016.51
5.4.130.0100.03716.43
5.4.120.0100.07316.36
5.4.110.0030.04316.34
5.4.100.0000.07316.44
5.4.90.0100.06716.43
5.4.80.0100.06016.48
5.4.70.0070.04316.39
5.4.60.0170.06316.31
5.4.50.0070.05316.49
5.4.40.0100.07316.59
5.4.30.0070.07316.33
5.4.20.0070.07716.48
5.4.10.0030.04716.40
5.4.00.0130.06315.87
5.3.290.0130.07014.78
5.3.280.0000.07714.50
5.3.270.0100.07314.65
5.3.260.0070.04014.64
5.3.250.0030.05714.74
5.3.240.0000.05314.65
5.3.230.0100.07714.74
5.3.220.0070.07714.57
5.3.210.0100.07314.64
5.3.200.0100.04014.50
5.3.190.0070.07314.69
5.3.180.0100.06714.68
5.3.170.0100.07314.50
5.3.160.0030.07714.70
5.3.150.0170.06314.71
5.3.140.0070.04014.63
5.3.130.0070.07714.44
5.3.120.0130.07014.67
5.3.110.0070.04314.48
5.3.100.0070.05314.08
5.3.90.0100.06314.14
5.3.80.0100.07014.09
5.3.70.0100.05314.09
5.3.60.0000.08014.05
5.3.50.0130.06314.06
5.3.40.0000.07714.00
5.3.30.0100.06713.96
5.3.20.0030.07013.62
5.3.10.0100.06713.60
5.3.00.0070.05313.75
5.2.170.0100.05711.28
5.2.160.0030.03711.20
5.2.150.0000.06011.05
5.2.140.0030.04011.20
5.2.130.0100.05711.14
5.2.120.0030.04711.10
5.2.110.0030.05711.16
5.2.100.0030.05711.25
5.2.90.0000.06011.16
5.2.80.0070.04311.27
5.2.70.0100.04711.23
5.2.60.0100.04711.12
5.2.50.0070.05311.16
5.2.40.0130.05311.05
5.2.30.0030.06310.88
5.2.20.0070.05711.02
5.2.10.0000.06011.04
5.2.00.0100.05010.89
5.1.60.0030.04010.04
5.1.50.0000.0579.95
5.1.40.0030.05310.10
5.1.30.0070.03710.49
5.1.20.0070.05310.31
5.1.10.0030.05710.16
5.1.00.0070.02710.25
5.0.50.0100.0338.61
5.0.40.0030.0438.54
5.0.30.0030.0608.36
5.0.20.0070.0378.17
5.0.10.0070.0408.24
5.0.00.0000.0638.25
4.4.90.0070.0337.39
4.4.80.0070.0337.39
4.4.70.0000.0307.39
4.4.60.0000.0377.39
4.4.50.0030.0237.39
4.4.40.0000.0577.39
4.4.30.0000.0407.39
4.4.20.0000.0377.39
4.4.10.0100.0307.39
4.4.00.0000.0337.39
4.3.110.0070.0337.39
4.3.100.0000.0277.39
4.3.90.0000.0377.39
4.3.80.0030.0537.39
4.3.70.0000.0307.39
4.3.60.0000.0377.39
4.3.50.0000.0377.39
4.3.40.0030.0507.39
4.3.30.0000.0307.39
4.3.20.0070.0277.39
4.3.10.0030.0337.39
4.3.00.0030.0377.39

preferences:
39.01 ms | 401 KiB | 5 Q