3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { private $allowed = 1; function __destruct() { if ($this->allowed == 1) echo file_get_contents("key.php"); } } t = new T(); die() if ($_SERVER['REQUEST_METHOD']!="GOD") die ("Only GOD method allowed"); $headers = apache_request_headers(); $is_ajax = (isset($headers['X-Requested-With']) && $headers['X-Requested-With'] == 'XMLHttpRequest'); if(!$is_ajax) die ("This is not ajax request"); if (!isset($_COOKIE['authorize'])) die ("Cookie authorize not set."); if (!isset($_GET['data'])) die ("Parameter data not set"); $data = $_GET['data']; echo file_get_contents("index.php"); unserialize($data); ?>

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.1.70.0080.00416.90
7.1.60.0210.00734.86
7.1.50.0250.00334.76
7.1.40.0220.00634.40
7.1.30.0170.01034.35
7.1.20.0140.01434.69
7.1.10.0030.01016.36
7.1.00.0050.00816.34
7.0.200.0030.01016.76
7.0.190.0060.00616.42
7.0.180.0060.00616.04
7.0.170.0060.00615.96
7.0.160.0040.00916.21
7.0.150.0030.00916.21
7.0.140.0000.01316.15
7.0.130.0060.00616.23
7.0.120.0040.01116.36
7.0.110.0030.01016.07
7.0.100.0070.00716.28
7.0.90.0060.00616.03
7.0.80.0030.01016.33
7.0.70.0030.01016.01
7.0.60.0040.01116.09
7.0.50.0030.01016.36
7.0.40.0060.00616.37
7.0.30.0090.00316.45
7.0.20.0060.00616.37
7.0.10.0090.00316.29
7.0.00.0040.00816.43

preferences:
144.9 ms | 1394 KiB | 7 Q