3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://www.mysite.com/tester.phtml"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1&postvar2=value2&postvar3=value3"); // in real life you should use something like: // curl_setopt($ch, CURLOPT_POSTFIELDS, // http_build_query(array('postvar1' => 'value1'))); // receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec ($ch); curl_close ($ch); // further processing .... if ($server_output == "OK") { ... } else { ... }

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)
5.4.260.0130.04512.37
5.4.250.0120.04712.37
5.4.240.0090.05012.36
5.4.230.0100.05312.36
5.4.220.0110.04912.36
5.4.210.0060.04512.36
5.4.200.0090.05212.36
5.4.190.0120.04712.36
5.4.180.0110.05012.35
5.4.170.0090.04712.36
5.4.160.0070.04712.36
5.4.150.0070.04212.35
5.4.140.0050.05112.04
5.4.130.0080.04912.03
5.4.120.0070.04211.99
5.4.110.0080.03811.98
5.4.100.0080.04211.99
5.4.90.0100.03411.98
5.4.80.0040.04611.98
5.4.70.0050.04911.98
5.4.60.0100.03711.98
5.4.50.0060.04711.98
5.4.40.0040.04011.97
5.4.30.0050.03911.97
5.4.20.0060.04111.96
5.4.10.0060.04411.97
5.4.00.0070.04811.46
5.3.280.0060.05112.71
5.3.270.0070.05312.73
5.3.260.0070.05412.72
5.3.250.0110.03612.72
5.3.240.0070.04012.71
5.3.230.0090.03812.71
5.3.220.0050.04112.68
5.3.210.0120.04212.68
5.3.200.0130.04612.68
5.3.190.0130.04312.68
5.3.180.0070.04112.67
5.3.170.0070.03912.67
5.3.160.0070.03912.67
5.3.150.0120.05812.68
5.3.140.0070.05012.66
5.3.130.0100.04812.66
5.3.120.0110.04712.66
5.3.110.0080.05412.66
5.3.100.0060.05112.12
5.3.90.0110.04812.08
5.3.80.0100.04412.07
5.3.70.0030.04212.07
5.3.60.0060.04412.06
5.3.50.0050.04212.00
5.3.40.0110.05012.00
5.3.30.0180.04411.94
5.3.20.0170.04211.70
5.3.10.0140.04511.67
5.3.00.0090.04511.66

preferences:
143.45 ms | 1394 KiB | 7 Q