3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_data = <<<DATA <?xml version="1.0"?> <geonames> <geoname> <name>Corato</name> </geoname> </geonames> DATA; $xml = simplexml_load_string($string_data); $citta = (string)$xml->geoname->name; echo $citta;

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.5.10.0100.01116.79
8.5.00.0140.00820.18
8.4.150.0020.00014.05
8.4.140.0120.00917.75
8.4.130.0080.01217.99
8.4.120.0150.00420.75
8.4.110.0150.00522.50
8.4.100.0160.00418.92
8.4.90.0100.01019.09
8.4.80.0060.00220.59
8.4.70.0110.00717.95
8.4.60.0130.00719.17
8.4.50.0160.00420.64
8.4.40.0070.01417.62
8.4.30.0140.00717.61
8.4.20.0130.00319.51
8.4.10.0080.00020.78
8.3.280.0140.00618.55
8.3.270.0110.00816.95
8.3.260.0120.00716.73
8.3.250.0110.00919.13
8.3.240.0120.00821.20
8.3.230.0030.00616.70
8.3.220.0050.00319.20
8.3.210.0090.00917.04
8.3.200.0080.00616.79
8.3.190.0060.00217.34
8.3.180.0110.00818.28
8.3.170.0000.00817.24
8.3.160.0110.00718.43
8.3.150.0140.00318.46
8.3.140.0000.00817.34
8.3.130.0060.00318.56
8.3.120.0030.00619.03
8.3.110.0060.01216.93
8.3.100.0040.01118.43
8.3.90.0070.00426.77
8.3.80.0030.00618.55
8.3.70.0070.00716.75
8.3.60.0090.00916.88
8.3.50.0070.00618.34
8.3.40.0100.00719.05
8.3.30.0030.01218.97
8.3.20.0080.00019.28
8.3.10.0030.00521.90
8.3.00.0070.00022.52
8.2.290.0120.00620.39
8.2.280.0110.00918.77
8.2.270.0130.00617.30
8.2.260.0120.00616.88
8.2.250.0030.00618.62
8.2.240.0070.01117.38
8.2.230.0060.00320.94
8.2.220.0110.00417.13
8.2.210.0070.00726.77
8.2.200.0000.00916.63
8.2.190.0100.00316.58
8.2.180.0100.00716.50
8.2.170.0170.00322.96
8.2.160.0070.00720.69
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00321.29
8.2.110.0030.00720.64
8.2.100.0080.00318.03
8.2.90.0090.00018.19
8.2.80.0000.00918.28
8.2.70.0000.00818.05
8.2.60.0040.00418.05
8.2.50.0060.00318.14
8.2.40.0080.00019.34
8.2.30.0070.00021.42
8.2.20.0000.00718.32
8.2.10.0000.00818.39
8.2.00.0030.00619.40
8.1.330.0100.01121.89
8.1.320.0110.00916.23
8.1.310.0070.00718.55
8.1.300.0030.00617.72
8.1.290.0050.00530.84
8.1.280.0070.01325.92
8.1.270.0060.00322.27
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0050.00524.11
8.1.230.0000.01122.23
8.1.220.0040.00417.91
8.1.210.0040.00418.88
8.1.200.0080.00017.48
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0060.00318.53
8.1.160.0000.00719.06
8.1.150.0060.00318.96
8.1.140.0000.00717.77
8.1.130.0030.00519.26
8.1.120.0080.00017.64
8.1.110.0060.00617.48
8.1.100.0000.00717.57
8.1.90.0080.00017.60
8.1.80.0070.00017.67
8.1.70.0070.00417.61
8.1.60.0000.00817.64
8.1.50.0040.00417.58
8.1.40.0040.00417.61
8.1.30.0110.00017.86
8.1.20.0040.00417.82
8.1.10.0040.00417.74
8.1.00.0040.00417.69
8.0.300.0040.00420.29
8.0.290.0030.00617.00
8.0.280.0000.00718.61
8.0.270.0040.00417.03
8.0.260.0030.00317.46
8.0.250.0000.01017.08
8.0.240.0030.00617.18
8.0.230.0000.00717.08
8.0.220.0000.00717.08
8.0.210.0000.00817.04
8.0.200.0000.01117.16
8.0.190.0040.00417.18
8.0.180.0020.00517.13
8.0.170.0040.00417.12
8.0.160.0000.00717.04
8.0.150.0040.00416.98
8.0.140.0020.00517.07
8.0.130.0060.00013.46
8.0.120.0030.00516.92
8.0.110.0040.00416.99
8.0.100.0000.00816.93
8.0.90.0040.00416.84
8.0.80.0050.01017.11
8.0.70.0000.00717.01
8.0.60.0000.00717.11
8.0.50.0050.00316.96
8.0.30.0130.00817.27
8.0.20.0100.01017.44
8.0.10.0050.00317.15
8.0.00.0100.01116.85
7.4.330.0020.00215.55
7.4.320.0020.00516.66
7.4.300.0030.00316.65
7.4.290.0030.00316.71
7.4.280.0000.00816.82
7.4.270.0040.00416.80
7.4.260.0070.00016.66
7.4.250.0000.00716.61
7.4.240.0050.00316.63
7.4.230.0070.00016.80
7.4.220.0040.00416.65
7.4.210.0070.01216.72
7.4.200.0060.00016.88
7.4.160.0100.00816.64
7.4.140.0080.01017.86
7.4.130.0100.00716.87
7.4.120.0100.00916.76
7.4.110.0040.01816.71
7.4.100.0070.01016.79
7.4.90.0030.01316.59
7.4.80.0090.01019.39
7.4.70.0140.00316.68
7.4.60.0100.01316.80
7.4.50.0100.00616.61
7.4.40.0060.01616.68
7.4.10.0070.01014.90
7.4.00.0100.00715.10
7.3.330.0000.00513.40
7.3.320.0050.00013.34
7.3.310.0030.00316.59
7.3.300.0030.00316.38
7.3.290.0070.00016.54
7.3.280.0050.01116.49
7.3.260.0140.00916.57
7.3.240.0070.01116.52
7.3.230.0070.01116.62
7.3.210.0130.00416.51
7.3.200.0070.01016.55
7.3.190.0110.01116.76
7.3.180.0100.00516.50
7.3.170.0170.00316.45
7.3.160.0120.00916.58
7.3.130.0150.00314.78
7.3.120.0090.00915.04
7.3.110.0080.01115.13
7.3.100.0050.01015.16
7.3.90.0060.00614.94
7.3.80.0050.00615.00
7.3.70.0050.00914.90
7.3.60.0050.00914.94
7.3.50.0070.00514.84
7.3.40.0050.00714.95
7.3.30.0030.00914.75
7.3.20.0070.00816.70
7.3.10.0070.00816.70
7.3.00.0050.00616.76
7.2.330.0130.01016.68
7.2.320.0160.00316.82
7.2.310.0100.00917.02
7.2.300.0090.01416.54
7.2.290.0060.01616.75
7.2.260.0090.01015.16
7.2.250.0050.01214.95
7.2.240.0090.00615.37
7.2.230.0090.00515.38
7.2.220.0040.01315.23
7.2.210.0060.00615.12
7.2.200.0060.00714.95
7.2.190.0040.00915.09
7.2.180.0070.00815.08
7.2.170.0040.01014.93
7.2.160.0050.01015.17
7.2.150.0020.01016.99
7.2.140.0080.01017.13
7.2.130.0080.00316.92
7.2.120.0020.01217.00
7.2.110.0050.00616.92
7.2.100.0050.00817.06
7.2.90.0050.00717.09
7.2.80.0060.00616.82
7.2.70.0010.01117.13
7.2.60.0090.00616.82
7.2.50.0060.00616.96
7.2.40.0350.00917.48
7.2.30.0500.00717.40
7.2.20.0270.00817.55
7.2.10.0310.00917.38
7.2.00.0440.00917.63
7.1.330.0070.00715.93
7.1.320.0060.00715.96
7.1.310.0020.00815.82
7.1.300.0050.00915.90
7.1.290.0050.00715.79
7.1.280.0040.00915.88
7.1.270.0050.00715.90
7.1.260.0050.01115.86
7.1.250.0040.00715.89
7.1.240.0040.01115.77
7.1.230.0100.00416.06
7.1.220.0080.00715.88
7.1.210.0020.01215.84
7.1.200.0030.00915.84
7.1.190.0050.00715.81
7.1.180.0030.00815.84
7.1.170.0050.00715.83
7.1.160.0340.00916.46
7.1.150.0340.01016.50
7.1.140.0340.01016.56
7.1.130.0510.01016.57
7.1.120.0420.00816.45
7.1.110.0430.00716.20
7.1.100.0460.00816.19
7.1.90.0440.01016.04
7.1.80.0470.00916.13
7.1.70.0460.01015.63
7.1.60.0610.00926.28
7.1.50.0550.00926.18
7.1.40.0540.00925.92
7.1.30.0570.00925.95
7.1.20.0640.01126.09
7.1.10.0380.00915.24
7.1.00.0450.00915.30
7.0.330.0080.00715.29
7.0.320.0010.01015.50
7.0.310.0050.00615.52
7.0.300.0050.00915.63
7.0.290.0030.00915.56
7.0.280.0050.01015.48
7.0.270.0050.00915.60
7.0.260.0080.00515.48
7.0.250.0030.00715.66
7.0.240.0010.01015.38
7.0.230.0070.00315.52
7.0.220.0060.00515.50
7.0.210.0080.00415.46
7.0.200.0030.00715.49
7.0.190.0040.00915.61
7.0.180.0050.00515.48
7.0.170.0090.00215.55
7.0.160.0010.00815.60
7.0.150.0030.00715.60
7.0.140.0050.00715.45
7.0.130.0040.00815.48
7.0.120.0060.00815.51
7.0.110.0060.00815.63
7.0.100.0050.00715.14
7.0.90.0050.00815.52
7.0.80.0050.00915.55
7.0.70.0030.01115.59
7.0.60.0090.00315.43
7.0.50.0050.00715.58
7.0.40.0030.01213.58
7.0.30.0050.00913.54
7.0.20.0090.00713.68
7.0.10.0060.00613.61
7.0.00.0030.00913.50
5.6.400.0030.00714.31
5.6.390.0000.01514.44
5.6.380.0090.00414.08
5.6.370.0070.00414.42
5.6.360.0030.01214.40
5.6.350.0080.00514.43
5.6.340.0080.00614.31
5.6.330.0070.00614.28
5.6.320.0030.00914.39
5.6.310.0020.00614.45
5.6.300.0040.00814.55
5.6.290.0100.00114.40
5.6.280.0040.00914.55
5.6.270.0020.01314.44
5.6.260.0040.00814.39
5.6.250.0070.00914.46
5.6.240.0070.00314.53
5.6.230.0050.00914.57
5.6.220.0010.01014.38
5.6.210.0060.00714.26
5.6.200.0030.01214.42
5.6.190.0060.00814.49
5.6.180.0030.00814.62
5.6.170.0020.01114.52
5.6.160.0080.00714.36
5.6.150.0090.00914.24
5.6.140.0040.01314.34
5.6.130.0070.00914.54
5.6.120.0020.01114.46
5.6.110.0030.01014.59
5.6.100.0080.00914.34
5.6.90.0020.01114.25
5.6.80.0060.00514.38
5.6.70.0050.01014.59
5.6.60.0050.01014.33
5.6.50.0060.00914.26
5.6.40.0030.01214.41
5.6.30.0070.00814.41
5.6.20.0020.01014.30
5.6.10.0050.00714.55
5.6.00.0050.00614.25

preferences:
172.44 ms | 403 KiB | 5 Q