3v4l.org

run code in 300+ PHP versions simultaneously
<?php $me = __FILE__; $xml = <<<ENDOFXML <!DOCTYPE root [ <!ENTITY foo SYSTEM "php://filter/convert.base64-encode/resource=$me"> ]> <foo>&foo;</foo> ENDOFXML; echo "libxml version: " . LIBXML_DOTTED_VERSION . "\n\n"; $s = simplexml_load_string($xml, null, LIBXML_NOENT); var_dump($s); echo "\n"; var_dump(base64_decode($s));

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.140.0040.00417.30
8.3.130.0080.00018.73
8.3.120.0060.00320.84
8.3.110.0110.00020.94
8.3.100.0030.00716.50
8.3.90.0050.00326.77
8.3.80.0060.00316.88
8.3.70.0070.00716.75
8.3.60.0100.00618.68
8.3.50.0000.01520.30
8.3.40.0050.01019.09
8.3.30.0040.01119.26
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0090.00026.16
8.2.250.0080.00016.84
8.2.240.0100.00017.48
8.2.230.0160.00022.58
8.2.220.0060.00337.54
8.2.210.0030.00526.77
8.2.200.0080.00316.75
8.2.190.0060.01216.75
8.2.180.0060.00925.92
8.2.170.0070.00722.96
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.92
8.2.110.0040.00420.77
8.2.100.0120.00018.22
8.2.90.0050.00320.82
8.2.80.0050.00318.18
8.2.70.0060.00317.75
8.2.60.0030.00517.75
8.2.50.0030.00617.98
8.2.40.0040.00418.47
8.2.30.0000.00718.34
8.2.20.0050.00220.82
8.2.10.0030.00518.43
8.2.00.0000.00719.56
8.1.300.0100.01018.20
8.1.290.0070.00330.84
8.1.280.0090.01225.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0000.00923.97
8.1.230.0030.00921.16
8.1.220.0060.00318.16
8.1.210.0040.00419.34
8.1.200.0050.00517.60
8.1.190.0080.00017.48
8.1.180.0060.00318.10
8.1.170.0060.00317.62
8.1.160.0070.00019.16
8.1.150.0040.00418.84
8.1.140.0070.00017.66
8.1.130.0000.00717.76
8.1.120.0050.00217.55
8.1.110.0040.00417.70
8.1.100.0000.00717.75
8.1.90.0040.00417.80
8.1.80.0030.00617.73
8.1.70.0030.00617.76
8.1.60.0080.00517.67
8.1.50.0140.00517.57
8.1.40.0200.00017.63
8.1.30.0110.00417.95
8.1.20.0090.00617.94
8.1.10.0110.00417.66
8.1.00.0130.00417.79
8.0.300.0040.00420.23
8.0.290.0090.00017.13
8.0.280.0040.00418.68
8.0.270.0040.00417.16
8.0.260.0000.00717.13
8.0.250.0040.00417.18
8.0.240.0000.00817.36
8.0.230.0060.00317.19
8.0.220.0040.00417.21
8.0.210.0080.00017.32
8.0.200.0050.01117.13
8.0.190.0100.00617.25
8.0.180.0090.00717.09
8.0.170.0080.00917.09
8.0.160.0080.00917.31
8.0.150.0040.01217.20
8.0.140.0140.00417.24
8.0.130.0160.00217.24
8.0.120.0100.00417.16
8.0.110.0090.00517.33
8.0.100.0130.00417.28
8.0.90.0080.00517.25
8.0.80.0090.00517.11
8.0.70.0060.00617.27
8.0.60.0050.00817.28
8.0.50.0060.00617.13
8.0.30.0150.00017.00
8.0.20.0130.00017.29
8.0.10.0100.00417.27
7.4.330.0000.00615.55
7.4.320.0040.00416.66
7.4.300.0100.00516.70
7.4.290.0120.00516.58
7.4.280.0150.00316.77
7.4.270.0120.00416.91
7.4.260.0070.01116.77
7.4.250.0100.00816.84
7.4.240.0170.00016.57
7.4.230.0070.00716.70
7.4.220.0120.00216.70
7.4.210.0060.01016.64
7.4.200.0050.00916.68
7.4.190.0130.00016.78
7.4.180.0090.00516.67
7.4.160.0090.00616.88
7.4.150.0110.00516.83
7.4.140.0160.00316.66
7.4.130.0120.00216.75
7.4.120.0070.00316.74
7.4.110.0110.00316.72
7.4.100.0120.00316.83
7.4.90.0080.00416.70
7.4.80.0060.00616.75
7.4.70.0070.00716.67
7.4.60.0000.01516.68
7.4.50.0110.00516.64
7.4.40.0140.00316.64
7.4.30.0030.00616.73
7.4.20.0040.00416.28
7.4.10.0050.00216.67
7.4.00.0090.00016.57

preferences:
15.19 ms | 403 KiB | 5 Q