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.0090.04812.38
5.4.240.0070.04812.38
5.4.230.0090.03712.38
5.4.220.0070.03612.38
5.4.210.0070.03612.38
5.4.200.0070.04112.38
5.4.190.0090.04312.38
5.4.180.0070.03912.37
5.4.170.0090.03912.38
5.4.160.0060.04312.37
5.4.150.0050.03812.37
5.4.140.0120.05812.06
5.4.130.0080.05212.04
5.4.120.0100.05712.00
5.4.110.0110.04912.00
5.4.100.0100.04312.00
5.4.90.0070.04512.00
5.4.80.0090.04212.00
5.4.70.0060.04212.00
5.4.60.0070.03512.00
5.4.50.0080.04112.00
5.4.40.0070.03711.99
5.4.30.0070.03611.98
5.4.20.0070.04211.98
5.4.10.0090.03611.98
5.4.00.0050.03811.48
5.3.280.0050.04112.71
5.3.270.0100.03812.73
5.3.260.0080.04512.72
5.3.250.0090.03612.72
5.3.240.0040.03912.72
5.3.230.0080.03812.71
5.3.220.0070.04112.68
5.3.210.0070.04112.68
5.3.200.0040.03812.68
5.3.190.0080.03812.68
5.3.180.0040.03812.67
5.3.170.0120.03912.67
5.3.160.0080.04312.67
5.3.150.0100.03812.68
5.3.140.0080.03412.66
5.3.130.0090.04812.66
5.3.120.0070.03912.66
5.3.110.0060.04112.66
5.3.100.0050.03912.12
5.3.90.0040.04012.08
5.3.80.0040.03912.08
5.3.70.0090.03812.07
5.3.60.0070.03712.06
5.3.50.0090.03612.00
5.3.40.0070.03712.00
5.3.30.0060.03811.95
5.3.20.0080.03611.72
5.3.10.0070.04111.68
5.3.00.0090.03611.67
5.2.170.0050.0339.18
5.2.160.0070.0389.18
5.2.150.0060.0309.18
5.2.140.0040.0339.17
5.2.130.0040.0319.13
5.2.120.0060.0349.13
5.2.110.0050.0309.14
5.2.100.0050.0299.13
5.2.90.0040.0319.14
5.2.80.0050.0349.13
5.2.70.0060.0309.13
5.2.60.0050.0309.09
5.2.50.0040.0329.05
5.2.40.0040.0309.03
5.2.30.0050.0319.01
5.2.20.0050.0319.00
5.2.10.0050.0308.92
5.2.00.0040.0328.78
5.1.60.0040.0258.07
5.1.50.0040.0278.07
5.1.40.0040.0258.05
5.1.30.0040.0298.40
5.1.20.0030.0308.43
5.1.10.0040.0278.14
5.1.00.0040.0278.14
5.0.50.0020.0236.63
5.0.40.0030.0216.48
5.0.30.0030.0356.30
5.0.20.0040.0216.27
5.0.10.0060.0226.25
5.0.00.0040.0316.24
4.4.90.0030.0174.78
4.4.80.0040.0154.75
4.4.70.0030.0154.76
4.4.60.0030.0164.76
4.4.50.0030.0214.77
4.4.40.0050.0284.71
4.4.30.0050.0154.76
4.4.20.0040.0184.85
4.4.10.0040.0184.85
4.4.00.0050.0244.76
4.3.110.0030.0164.67
4.3.100.0040.0154.66
4.3.90.0040.0194.63
4.3.80.0050.0254.58
4.3.70.0040.0144.63
4.3.60.0050.0154.63
4.3.50.0040.0204.63
4.3.40.0030.0264.53
4.3.30.0020.0193.31
4.3.20.0040.0153.28
4.3.10.0040.0143.25
4.3.00.0100.0206.77

preferences:
133.93 ms | 1386 KiB | 7 Q