3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file_headers = @get_headers(''http://1x-pay.com/images/money/yandexkassa.png''); if (stripos($file_headers[0],"404 Not Found") >0 || (stripos($file_headers[0], "302 Found") > 0 && stripos($file_headers[7],"404 Not Found") > 0)) { //throw my exception or do something }

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)
7.0.20.0200.04720.27
7.0.10.0030.08320.33
7.0.00.0070.03720.16
5.6.170.0300.06320.46
5.6.160.0070.04320.55
5.6.150.0070.06318.21
5.6.140.0130.07318.21
5.6.130.0070.08318.17
5.6.120.0100.04321.00
5.6.110.0070.06021.02
5.6.100.0100.07321.00
5.6.90.0000.08720.88
5.6.80.0030.07320.48
5.5.310.0330.07720.27
5.5.300.0070.04017.95
5.5.290.0130.07718.04
5.5.280.0070.04020.64
5.5.270.0170.07720.67
5.5.260.0270.06020.76
5.5.250.0100.06020.65
5.5.240.0370.06320.07

preferences:
148.47 ms | 1394 KiB | 7 Q