3v4l.org

run code in 300+ PHP versions simultaneously
<?php $$v3_1 = array( 'lang' => 'en', // based on client's browser user-agent 'location' => array( // based on client's IP 'countryCode' => 'DE', 'countryName' => 'Germany', 'regionName' => 'North-Rhine-Westphalia', 'cityName' => 'Cologne', ), 'headlines' => array( 'Meet someone for soccer in Cologne today!', 'Find new friends in Cologne who like soccer.', '22,449 people in Cologne want to meet new people for soccer.' ), 'img' => 'http://static.meetone.com/landing/adt/interests/soccer.jpg' ); $v3_2 = array( 'lang' => 'de', // based on client's browser user-agent 'location' => array( // based on client's IP 'countryCode' => 'DE', 'countryName' => 'Deutschland', 'regionName' => 'Bayern', 'cityName' => '', ), 'headlines' => array( 'Treffe heute noch neue Leute zum Fussball in Bayern!' 'Neue Freunde beim Fussball in Bayern finden!' '31,471 Leute in Bayern suchen gerade Leute zum Fussball.' ), 'img' => 'http://static.meetone.com/landing/adt/interests/soccer.jpg' ); print json_encode($v3_1) . PHP_EOL; print json_encode($v3_2);

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.230.0070.03712.39
5.4.220.0120.04012.38
5.4.210.0170.04912.38
5.4.200.0090.04312.38
5.4.190.0110.04212.38
5.4.180.0120.03912.38
5.4.170.0080.04312.39
5.4.160.0100.04112.38
5.4.150.0100.04212.38
5.4.140.0110.04112.07
5.4.130.0090.04212.04
5.4.120.0110.04012.01
5.4.110.0120.03712.01
5.4.100.0130.03612.01
5.4.90.0100.04012.01
5.4.80.0100.04112.01
5.4.70.0120.03812.00
5.4.60.0100.03912.00
5.4.50.0160.04912.00
5.4.40.0100.04111.99
5.4.30.0110.03911.98
5.4.20.0100.04711.98
5.4.10.0100.04011.98
5.4.00.0090.04211.47
5.3.280.0070.04012.71
5.3.270.0210.05012.72
5.3.260.0130.04312.72
5.3.250.0120.04212.72
5.3.240.0130.05612.72
5.3.230.0110.04212.71
5.3.220.0100.04112.68
5.3.210.0160.03812.68
5.3.200.0140.03812.68
5.3.190.0120.04012.68
5.3.180.0120.04112.67
5.3.170.0110.04112.67
5.3.160.0120.04012.67
5.3.150.0140.03912.67
5.3.140.0130.03912.66
5.3.130.0090.04512.66
5.3.120.0110.04212.66
5.3.110.0190.04912.66
5.3.100.0120.03912.12
5.3.90.0100.04112.08
5.3.80.0120.04112.07
5.3.70.0180.06712.07
5.3.60.0120.04012.06
5.3.50.0140.03912.00
5.3.40.0100.04212.00
5.3.30.0110.03911.94
5.3.20.0080.04311.72
5.3.10.0110.03811.69
5.3.00.0080.04311.67

preferences:
139.4 ms | 1386 KiB | 7 Q