3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmldata = <<< XML <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>XML Example</title> </head> <body> <p> <b>Hello, World!</b> </p> </body> </html> XML; $sxe = simplexml_load_string($xmldata); $p = $sxe->body->p; var_dump($p); //$string = ???????? print $string; ?>

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.00716.88
8.3.50.0030.01016.54
8.3.40.0040.01118.83
8.3.30.0070.00718.96
8.3.20.0040.00420.55
8.3.10.0040.00422.02
8.3.00.0030.00619.50
8.2.180.0090.00616.88
8.2.170.0120.00319.09
8.2.160.0030.01422.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00519.61
8.2.110.0090.00019.54
8.2.100.0080.00417.88
8.2.90.0000.00819.42
8.2.80.0050.00317.97
8.2.70.0050.00317.75
8.2.60.0040.00418.18
8.2.50.0050.00318.07
8.2.40.0040.00420.07
8.2.30.0000.00718.23
8.2.20.0060.00317.97
8.2.10.0040.00418.25
8.2.00.0040.00418.01
8.1.280.0090.00625.92
8.1.270.0040.00420.57
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0060.00323.02
8.1.230.0090.00317.60
8.1.220.0050.00318.04
8.1.210.0040.00418.77
8.1.200.0050.00517.11
8.1.190.0060.00317.48
8.1.180.0030.00518.10
8.1.170.0030.00520.50
8.1.160.0040.00422.12
8.1.150.0070.00019.02
8.1.140.0040.00417.54
8.1.130.0030.00318.09
8.1.120.0070.00017.63
8.1.110.0030.00417.66
8.1.100.0040.00417.57
8.1.90.0040.00417.58
8.1.80.0000.00717.68
8.1.70.0030.00317.50
8.1.60.0000.00917.73
8.1.50.0040.00417.55
8.1.40.0050.00317.71
8.1.30.0090.00017.88
8.1.20.0060.00317.80
8.1.10.0060.00317.79
8.1.00.0000.00817.54
8.0.300.0090.00018.77
8.0.290.0040.00417.13
8.0.280.0000.00718.65
8.0.270.0070.00017.37
8.0.260.0080.00017.51
8.0.250.0030.00317.20
8.0.240.0040.00417.25
8.0.230.0000.01017.11
8.0.220.0000.00717.00
8.0.210.0030.00317.12
8.0.200.0070.00017.19
8.0.190.0040.00417.03
8.0.180.0000.00717.21
8.0.170.0040.00417.15
8.0.160.0000.00717.18
8.0.150.0040.00417.03
8.0.140.0000.00816.92
8.0.130.0040.00313.44
8.0.120.0040.00417.05
8.0.110.0070.00017.00
8.0.100.0070.00017.09
8.0.90.0040.00417.19
8.0.80.0110.00617.02
8.0.70.0000.00716.99
8.0.60.0040.00416.96
8.0.50.0000.00717.11
8.0.30.0100.01317.34
8.0.20.0130.00617.40
8.0.10.0050.00317.13
8.0.00.0110.00717.03
7.4.330.0000.00615.26
7.4.320.0030.00316.81
7.4.300.0030.00316.83
7.4.290.0000.00716.70
7.4.280.0000.00816.83
7.4.270.0030.00516.66
7.4.260.0030.00316.72
7.4.250.0040.00416.70
7.4.240.0040.00416.82
7.4.230.0040.00416.77
7.4.220.0100.01316.70
7.4.210.0070.00816.83
7.4.200.0000.00716.63
7.4.160.0070.01016.62
7.4.150.0030.01317.40
7.4.140.0110.00817.86
7.4.130.0180.00516.71
7.4.120.0090.00816.69
7.4.110.0150.00316.86
7.4.100.0090.00916.79
7.4.90.0060.01216.93
7.4.80.0170.00419.39
7.4.70.0040.01416.56
7.4.60.0040.01216.69
7.4.50.0080.00016.62
7.4.40.0090.01516.92
7.4.30.0160.00316.73
7.4.00.0040.00814.85
7.3.330.0050.00013.17
7.3.320.0090.00413.37
7.3.310.0040.00416.58
7.3.300.0000.00716.55
7.3.290.0070.00016.34
7.3.280.0050.01416.46
7.3.270.0100.00717.40
7.3.260.0110.00616.76
7.3.250.0150.00516.67
7.3.240.0090.00816.82
7.3.230.0130.00316.61
7.3.210.0180.00016.66
7.3.200.0030.01819.39
7.3.190.0090.00716.45
7.3.180.0120.00416.57
7.3.170.0090.01216.53
7.3.160.0100.00616.73
7.2.330.0060.01116.96
7.2.320.0080.01217.00
7.2.310.0030.01316.94
7.2.300.0190.00017.06
7.2.290.0140.00317.01
7.2.00.0140.00419.18
7.1.200.0060.00815.91
7.1.100.0030.00618.07
7.1.70.0030.00517.30
7.1.60.0090.01619.50
7.1.50.0030.02117.11
7.1.00.0030.07722.50
7.0.200.0030.00915.00
7.0.140.0030.05322.18
7.0.60.0070.04020.17
7.0.50.0070.08017.94
7.0.40.0100.07720.14
7.0.30.0630.07020.29
7.0.20.0230.08020.25
7.0.10.0230.08020.33
7.0.00.0130.07720.40
5.6.280.0030.07320.88
5.6.210.0030.05320.87
5.6.200.0070.03718.24
5.6.190.0070.09020.56
5.6.180.0430.07320.72
5.6.170.0230.07720.52
5.6.160.0100.08020.67
5.6.150.0070.04018.25
5.6.140.0100.07718.30
5.6.130.0030.05018.24
5.6.120.0000.07021.07
5.6.110.0030.07721.20
5.6.100.0070.08321.03
5.6.90.0130.08021.19
5.6.80.0100.03720.52
5.6.70.0270.07020.48
5.5.350.0300.07720.54
5.5.340.0070.08318.00
5.5.330.0100.08320.57
5.5.320.0100.03020.29
5.5.310.0400.07320.39
5.5.300.0070.06718.06
5.5.290.0130.07718.11
5.5.280.0070.08320.93
5.5.270.0030.05020.84
5.5.260.0130.05720.94
5.5.250.0100.08320.66
5.5.240.0070.07020.31
5.4.450.3670.04719.48
5.4.440.0030.06319.65
5.4.430.3830.03719.58
5.4.420.3900.04319.59
5.4.410.4070.03019.32
5.4.400.4100.04019.13
5.4.390.4370.04719.27
5.4.380.3930.03719.13
5.4.370.3970.03318.95
5.4.360.3670.04019.09
5.4.350.4030.03719.27
5.4.340.4100.03319.28
5.4.320.4070.03319.26
5.4.310.4070.03018.95
5.4.300.3770.03319.19
5.4.290.3630.03719.20
5.4.280.3330.04019.25
5.4.270.3730.03019.23
5.4.260.3800.04019.34
5.4.250.3800.04019.11
5.4.240.3500.04319.21
5.4.230.3970.03719.23
5.4.220.3870.03719.22
5.4.210.3800.04319.27
5.4.200.4130.03719.14
5.4.190.4130.04319.11
5.4.180.4370.04319.27
5.4.170.3000.03719.11
5.4.160.3570.04319.11
5.4.150.2330.04318.99
5.4.140.3570.03316.48
5.4.130.3700.03016.51
5.4.120.3230.04016.46
5.4.110.3200.03716.60
5.4.100.2970.03316.59
5.4.90.2730.03316.51
5.4.80.2630.03016.60
5.4.70.3570.03016.38
5.4.60.3700.03316.36
5.4.50.3430.03716.48
5.4.40.4000.03716.59
5.4.30.4000.04016.54
5.4.20.3770.03716.38
5.4.10.3830.04016.56
5.4.00.3970.03715.91
5.3.290.3730.03714.63
5.3.280.3630.04014.60
5.3.270.3670.03314.71
5.3.260.3000.03714.73
5.3.250.2270.04014.78
5.3.240.3200.03314.59
5.3.230.3400.04014.72
5.3.220.3070.03714.53
5.3.210.3170.04314.53
5.3.200.3230.04014.61
5.3.190.2270.03314.44
5.3.180.3070.03714.70
5.3.170.3800.03314.44
5.3.160.3470.04314.64
5.3.150.3670.04014.55
5.3.140.4030.03714.73
5.3.130.4000.03314.57
5.3.120.3400.03714.57
5.3.110.3430.04014.64
5.3.100.3670.04314.04
5.3.90.3800.03713.89
5.3.80.3770.03314.14
5.3.70.4500.03714.04
5.3.60.4370.04313.90
5.3.50.3400.03314.08
5.3.40.4070.03714.02
5.3.30.3670.03713.92
5.3.20.3670.04013.72
5.3.10.3870.03313.66
5.3.00.3230.04313.64
5.2.170.3270.03711.18
5.2.160.3230.02311.13
5.2.150.2330.03011.11
5.2.140.3470.02711.24
5.2.130.3270.03311.17
5.2.120.2700.02311.18
5.2.110.3200.02311.17
5.2.100.3170.03711.15
5.2.90.4000.03011.24
5.2.80.4000.03011.17
5.2.70.4270.02011.18
5.2.60.0100.03311.18
5.2.50.0030.03311.25
5.2.40.0030.06311.16
5.2.30.0000.07011.05
5.2.20.2300.03011.05
5.2.10.3270.02711.11
5.2.00.3200.03010.82
5.1.60.3330.02310.07
5.1.50.3200.03010.15
5.1.40.2070.03010.13
5.1.30.2830.03010.32
5.1.20.2900.02310.53
5.1.10.2370.02710.21
5.1.00.2930.02710.32
5.0.50.1630.0178.73
5.0.40.1170.0208.52
5.0.30.1900.0278.22
5.0.20.1870.0178.20
5.0.10.1830.0208.34
5.0.00.1730.0308.27
4.4.90.1000.0235.92
4.4.80.0000.0205.82
4.4.70.1830.0135.85
4.4.60.1800.0175.83
4.4.50.1600.0135.85
4.4.40.1570.0205.86
4.4.30.1570.0135.86
4.4.20.1600.0175.91
4.4.10.1430.0175.96
4.4.00.1930.0235.88
4.3.110.1830.0175.78
4.3.100.1800.0205.83
4.3.90.1970.0105.82
4.3.80.1600.0235.85
4.3.70.1930.0135.73
4.3.60.1830.0135.80
4.3.50.1600.0175.79
4.3.40.1870.0275.68
4.3.30.0030.0174.82
4.3.20.0000.0274.82
4.3.10.0000.0334.82
4.3.00.0000.0304.82

preferences:
44.91 ms | 400 KiB | 5 Q