3v4l.org

run code in 300+ PHP versions simultaneously
<?php $payload = json_decode('{"repository": {"website": "http://clients.namanyayg.com/davidado/asianfanfics", "fork": false, "name": "AsianFanfics", "scm": "git", "owner": "namanyayg", "absolute_url": "/namanyayg/asianfanfics/", "slug": "asianfanfics", "is_private": true}, "truncated": false, "commits": [{"node": "5741782e36cb", "files": [{"type": "removed", "file": "README.md"}], "raw_author": "Namanyay Goel <mail@namanyayg.com>", "utctimestamp": "2014-03-05 09:58:52+00:00", "author": "namanyayg", "timestamp": "2014-03-05 10:58:52", "raw_node": "5741782e36cbac80dc01bc3605eda95640a3f480", "parents": ["1d0a82c82718"], "branch": "master", "message": "Removed README\n", "revision": null, "size": -1}], "canon_url": "https://bitbucket.org", "user": "namanyayg"}'); $repo = $payload->repository; echo "Hi!"; $payload = $_POST['payload']; $repo = $payload->repo; echo 'Deploying on ' . date('l jS \of F Y h:i:s A'); echo $payload == true; echo $repo->owner === 'namanyayg'; echo strrpos($repo->absolute_url, 'namanyayg') == true; if ( $payload == true && $repo->owner === 'namanyayg' && strrpos($repo->absolute_url, 'namanyayg') == true ) { $url = str_replace('http://clients.namanyayg.com/', '', $repo->website); $bitbucketurl = substr($repo->absolute_url, 1, -1); echo 'True! ' . $url . $bitbucketurl; $makeandcdcommand = 'mkdir ' . $url . ' && cd ' . $url; $gitclonecommand = 'rm -rf * && ' . 'git clone git@bitbucket.org:' . $bitbucketurl . '.git' echo 'True! ' . $makeandcdcommand . $gitclonecommand; $makeandcd = shell_exec($makeandcdcommand); $gitclone = shell_exec($gitclonecommand); echo $makeandcd . $gitclone); }; ?>

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.250.0130.07718.73
5.4.240.0100.05018.89
5.4.230.0170.07018.93
5.4.220.0070.05718.72
5.4.210.0030.07318.88
5.4.200.0100.05018.80
5.4.190.0100.05018.79
5.4.180.0100.05318.89
5.4.170.0030.05719.06
5.4.160.0130.06018.71
5.4.150.0070.05718.91
5.4.140.0130.04716.37
5.4.130.0030.05716.55
5.4.120.0170.05716.56
5.4.110.0100.05016.45
5.4.100.0100.05016.48
5.4.90.0000.07716.34
5.4.80.0100.04716.56
5.4.70.0100.05016.61
5.4.60.0130.04716.56
5.4.50.0070.04716.40
5.4.40.0030.05716.45
5.4.30.0100.04716.31
5.4.20.0070.05016.39
5.4.10.0200.06016.43
5.4.00.0100.04716.09
5.3.280.0070.05314.70
5.3.270.0070.05314.63
5.3.260.0100.06014.66
5.3.250.0200.05314.77
5.3.240.0130.05314.63
5.3.230.0100.05014.62
5.3.220.0070.05014.28
5.3.210.0070.08014.59
5.3.200.0070.06714.27
5.3.190.0100.04714.43
5.3.180.0170.04314.61
5.3.170.0000.05314.58
5.3.160.0200.03714.57
5.3.150.0200.04014.46
5.3.140.0070.05314.60
5.3.130.0070.05714.56
5.3.120.0070.08014.49
5.3.110.0100.05014.39
5.3.100.0170.07013.96
5.3.90.0070.05314.04
5.3.80.0070.07714.04
5.3.70.0030.07713.96
5.3.60.0200.05314.02
5.3.50.0100.04713.84
5.3.40.0030.05713.87
5.3.30.0100.04313.69
5.3.20.0100.04313.57
5.3.10.0030.05313.50
5.3.00.0030.05313.64

preferences:
141.79 ms | 1394 KiB | 7 Q