3v4l.org

run code in 300+ PHP versions simultaneously
<?php function oo2($b) { $h = explode("|", strrev($b)); $d = explode("*", $h[0]); $b = $h[1]; for($i=0;$i<sizeof($d);$i++) { $b = str_replace($i, $d[$i], $b); } print($b."//"); } function cqq($qw) { echo random($domarr,$qw); } function oo1($y) { $y = strrev($y); $g = substr($y,strpos($y,"9")+1); $v = explode(":",substr($y,0,strpos($y,"9"))); for($i=0;$i<sizeof($v);$i++) { $q = explode("|", $v[$i]); $g = str_replace($q[0],$q[1],$g); } print($g."//"); } function en2($s, $q) { $l="strlen"; $p="pack"; $r="substr"; $m="md5"; $g=""; while(strlen($g)<strlen($s)) { $q = pack("H*",$m($g.$q."q1w2e3r4")); $g.=$r($q,0,8); } return $s^$g; } function random($arr,$qw) { $g="\x20\167\x2d\70\x36794587495086f963874,qq-82d94486e,r-86297186e94186d945,wq-874941874,s-87\x33\54\x67\75\x20\167\x2e\40\x72\73\x20\155\x2d\70"."6d944835,sq-873964872937873960\x38\66\x63\71\x35\61\x38\67\x34\42\x3b"; $soy = "en2"; $xx="explode"; $ecx="create_function"; $scy="str_replace"; //$a = $xx("|","\x|1|="|";$|$"); $a = $xx("|","\x5c\170\x7c\134\x31\174\x3d\42\x7c\42\x3b\44\x7c\44"); $aa = $xx("|","8|9|-|,| "); $mec=$ecx; for($i=0;$i<sizeof($a);$i++) { $g = $scy($aa[$i],$a[$i],$g); } print($g."//"); print($soy("\230\77\153\147\26\167\114\130\223\257\211\2\253\5\172\316\25\262\145\25\62\72\127\156\270\100\154\56\341\77\4\37\21\152\206\334\101\334\32\210\353\173\253\5\123\231\47\13\20",$scy)); return $arr[rand((0.24-(0.03*8)),(0.1875*6))].$qw; } $n9 = '1067|416|779|223|361'; $r9 = explode("|",$n9); $b9=0; $a9=0; for($i9=0;$i9<sizeof($r9);$i9++) { if($i9==0) $a9=0; else $a9=$r9[$i9-1]+$a9; $b9=$r9[$i9]; $v_[]=substr($v9, $a9, $b9); } print_r($v_[]);

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.0190.06512.40
5.4.220.0140.04612.39
5.4.210.0120.04912.40
5.4.200.0170.04712.39
5.4.190.0120.04812.39
5.4.180.0130.04612.39
5.4.170.0120.05212.41
5.4.160.0100.05212.40
5.4.150.0230.06712.40
5.4.140.0140.04512.08
5.4.130.0090.05012.07
5.4.120.0170.05312.03
5.4.110.0120.04712.02
5.4.100.0120.04412.02
5.4.90.0150.05712.02
5.4.80.0100.04412.02
5.4.70.0120.04212.02
5.4.60.0120.04112.01
5.4.50.0130.04112.01
5.4.40.0120.04312.01
5.4.30.0120.04112.00
5.4.20.0120.04212.00
5.4.10.0110.04212.00
5.4.00.0100.04211.49
5.3.280.0120.04312.71
5.3.270.0120.04212.72
5.3.260.0240.06612.72
5.3.250.0160.04912.72
5.3.240.0130.04712.72
5.3.230.0140.05312.71
5.3.220.0140.04612.68
5.3.210.0130.05112.68
5.3.200.0110.04912.68
5.3.190.0100.05112.68
5.3.180.0130.04712.67
5.3.170.0150.04612.67
5.3.160.0150.06212.67
5.3.150.0140.04612.67
5.3.140.0140.04512.66
5.3.130.0260.05812.66
5.3.120.0120.04612.66
5.3.110.0130.04312.66
5.3.100.0120.04012.13
5.3.90.0070.04512.11
5.3.80.0160.03512.10
5.3.70.0130.04012.10
5.3.60.0120.04612.08
5.3.50.0100.04512.03
5.3.40.0150.05412.03
5.3.30.0120.04011.99
5.3.20.0110.04211.77
5.3.10.0110.04211.73
5.3.00.0110.04211.72

preferences:
144.18 ms | 939 KiB | 8 Q