3v4l.org

run code in 500+ PHP versions simultaneously
<?php //$dom = new DOMDocument(); // //$file = file_get_contents(__DIR__ . '/test.xml'); //$dom->loadXML($file, LIBXML_NOWARNING); // //$xpath = new DOMXPath($dom); //$xpath->registerNamespace('soap', 'http://schemas.xmlsoap.org/soap/envelope/'); //$result = $xpath->query('//soap:Body/*')->item(0); // //file_put_contents(__DIR__ . '/update2.xml', $dom->saveXML($result)); $input = "test 124 gdfjg hdfg df"; echo str_replace(['124', 'gdfgdfg'], '', $input);

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.90.0120.00818.52
8.5.80.0320.00716.77
8.5.70.0330.00816.73
8.5.60.0300.01116.73
8.5.50.0310.00916.81
8.5.40.0310.00816.43
8.5.30.0090.00918.30
8.5.20.0330.00816.25
8.5.10.0330.00816.63
8.5.00.0100.00918.37
8.4.240.0300.01119.42
8.4.230.0310.01119.43
8.4.220.0160.01019.28
8.4.210.0340.01119.54
8.4.200.0360.00919.14
8.4.190.0330.00919.41
8.4.180.0320.01219.36
8.4.170.0340.00919.46
8.4.160.0320.01219.38
8.4.150.0350.00919.51
8.4.140.0350.00617.49
8.4.130.0290.00817.71
8.4.120.0310.00717.76
8.4.110.0320.00917.54
8.4.100.0380.01017.52
8.4.90.0340.01017.66
8.4.80.0360.00917.63
8.4.70.0350.00817.75
8.4.60.0380.00617.65
8.4.50.0370.00817.74
8.4.40.0370.00917.32
8.4.30.0380.00617.28
8.4.20.0310.01117.52
8.4.10.0320.01317.49
8.3.330.0450.01118.20
8.3.320.0320.00618.27
8.3.310.0330.00918.04
8.3.300.0240.00818.25
8.3.290.0290.00617.99
8.3.280.0290.01218.31
8.3.270.0370.00916.61
8.3.260.0340.01116.57
8.3.250.0360.00516.62
8.3.240.0370.00616.38
8.3.230.0380.00716.49
8.3.220.0330.00816.55
8.3.210.0310.01016.61
8.3.200.0300.00916.48
8.3.190.0360.00716.43
8.3.180.0360.00716.60
8.3.170.0330.01116.56
8.3.160.0320.01116.66
8.3.150.0360.00616.54
8.3.140.0330.01216.39
8.3.130.0290.01116.29
8.3.120.0140.00416.53
8.3.110.0180.00616.49
8.3.100.0350.00816.42
8.3.90.0260.00816.70
8.3.80.0300.01016.13
8.3.70.0330.00716.59
8.3.60.0300.01016.43
8.3.50.0360.00616.55
8.3.40.0340.00817.75
8.3.30.0330.00617.69
8.3.20.0300.00617.72
8.3.10.0330.00817.89
8.3.00.0270.00817.84
8.2.330.0410.01117.75
8.2.320.0310.00917.98
8.2.310.0290.01017.84

preferences:
60.68 ms | 770 KiB | 5 Q