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)
7.4.10.0090.00915.11
7.4.00.0060.01315.11
7.3.130.0110.00715.11
7.3.120.0000.01315.11
7.3.110.0060.00915.11
7.3.100.0040.01115.11
7.3.90.0060.00615.11
7.3.80.0100.00715.17
7.3.70.0040.00815.11
7.3.60.0030.00715.11
7.3.50.0000.01515.11
7.3.40.0060.00615.11
7.3.30.0040.00715.11
7.3.20.0000.01516.64
7.3.10.0000.00916.61
7.3.00.0070.00716.63
7.2.260.0070.01015.11
7.2.250.0000.01815.39
7.2.240.0070.00715.35
7.2.230.0090.00315.34
7.2.220.0000.01515.11
7.2.210.0130.00315.11
7.2.200.0070.00715.11
7.2.190.0060.01215.11
7.2.180.0000.01515.11
7.2.170.0030.00915.11
7.2.160.0030.01015.15
7.2.150.0000.00917.07
7.2.140.0040.00716.75
7.2.130.0090.00616.94
7.2.120.0100.00716.64
7.2.110.0000.01316.67
7.2.100.0070.00716.67
7.2.90.0060.01216.87
7.2.80.0120.00017.13
7.2.70.0070.00716.87
7.2.60.0030.00916.79
7.2.50.0030.00717.11
7.2.40.0070.01016.98
7.2.30.0000.01617.01
7.2.20.0060.00316.95
7.2.10.0090.00616.66
7.2.00.0030.00617.06
7.1.330.0100.00715.84
7.1.320.0000.01315.71
7.1.310.0000.01515.93
7.1.300.0080.00415.91
7.1.290.0050.00515.65
7.1.280.0100.00615.65
7.1.270.0030.01015.98
7.1.260.0070.00715.69
7.1.250.0030.01415.54
7.1.240.0070.01015.83
7.1.230.0070.00715.81
7.1.220.0000.01415.97
7.1.210.0150.00015.70
7.1.200.0050.00515.95
7.1.190.0030.01015.77
7.1.180.0030.00815.79
7.1.170.0080.00615.96
7.1.160.0070.00715.78
7.1.150.0030.00915.82
7.1.140.0030.00615.82
7.1.130.0030.00615.72
7.1.120.0030.00915.79
7.1.110.0110.00415.96
7.1.100.0070.00315.92
7.1.90.0110.00315.63
7.1.80.0040.00815.89
7.1.70.0090.00616.49
7.1.60.0070.01217.49
7.1.50.0070.00716.34
7.1.40.0100.00715.70
7.1.30.0030.00715.62
7.1.20.0030.00615.89
7.1.10.0100.00315.80
7.1.00.0020.03919.09
7.0.330.0100.00715.32
7.0.320.0060.00615.40
7.0.310.0030.01315.45
7.0.300.0060.00915.18
7.0.290.0080.00515.35
7.0.280.0070.00715.33
7.0.270.0090.00315.35
7.0.260.0040.00815.47
7.0.250.0110.00615.54
7.0.240.0030.00915.48
7.0.230.0000.01515.63
7.0.220.0090.00315.32
7.0.210.0090.00315.18
7.0.200.0050.00616.17
7.0.190.0060.00915.58
7.0.180.0070.00715.44
7.0.170.0090.00715.49
7.0.160.0030.01015.39
7.0.150.0090.00915.40
7.0.140.0040.04418.71
7.0.130.0060.00615.46
7.0.120.0040.00815.53
7.0.110.0000.01315.28
7.0.100.0080.03318.67
7.0.90.0060.04518.52
7.0.80.0050.04218.56
7.0.70.0050.02918.55
7.0.60.0050.04718.62
7.0.50.0070.03518.80
7.0.40.0060.04617.63
7.0.30.0050.04917.55
7.0.20.0050.04817.59
7.0.10.0030.04817.58
7.0.00.0050.04517.61
5.6.400.0030.00915.11
5.6.390.0110.00715.11
5.6.380.0030.01215.11
5.6.370.0070.01115.11
5.6.360.0030.00715.11
5.6.350.0000.01015.11
5.6.340.0150.00015.11
5.6.330.0060.00915.11
5.6.320.0120.00015.11
5.6.310.0000.01015.11
5.6.300.0030.01415.11
5.6.290.0100.00615.11
5.6.280.0040.04018.01
5.6.270.0060.01015.11
5.6.260.0070.00715.11
5.6.250.0070.02517.86
5.6.240.0050.04717.82
5.6.230.0050.04717.87
5.6.220.0120.03217.88
5.6.210.0090.04717.87
5.6.200.0050.04518.13
5.6.190.0030.04518.11
5.6.180.0070.04218.12
5.6.170.0090.04518.08
5.6.160.0080.03818.13
5.6.150.0050.05018.04
5.6.140.0070.03918.10
5.6.130.0070.03418.03
5.6.120.0100.04318.04
5.6.110.0070.04418.07
5.6.100.0080.02618.05
5.6.90.0100.02618.07
5.6.80.0080.04017.76
5.6.70.0020.02817.72
5.6.60.0100.04217.83
5.6.50.0070.03017.72
5.6.40.0030.04317.76
5.6.30.0030.04317.76
5.6.20.0100.04017.79
5.6.10.0060.04117.74
5.6.00.0080.04317.82
5.5.380.0070.04317.81
5.5.370.0030.05217.79
5.5.360.0030.04817.82
5.5.350.0100.03817.78
5.5.340.0060.02518.01
5.5.330.0070.03617.98
5.5.320.0020.04517.92
5.5.310.0000.04917.96
5.5.300.0100.04217.99
5.5.290.0100.02717.92
5.5.280.0070.03817.94
5.5.270.0070.04717.97
5.5.260.0080.04517.88
5.5.250.0050.04317.90
5.5.240.0060.04117.57
5.5.230.0050.02717.69
5.5.220.0050.04417.63
5.5.210.0080.02817.64
5.5.200.0050.04217.65
5.5.190.0070.02717.67
5.5.180.0100.04017.69
5.5.170.0060.00915.11
5.5.160.0040.02917.65
5.5.150.0030.04617.67
5.5.140.0050.04317.64
5.5.130.0020.03117.67
5.5.120.0090.04217.70
5.5.110.0070.04617.67
5.5.100.0060.04317.55
5.5.90.0050.04717.59
5.5.80.0080.04017.61
5.5.70.0100.04217.58
5.5.60.0100.03317.61
5.5.50.0050.03517.56
5.5.40.0050.04617.59
5.5.30.0120.03917.55
5.5.20.0050.04417.64
5.5.10.0090.02517.58
5.5.00.0080.02517.57
5.4.450.0050.04417.31
5.4.440.0050.03217.29
5.4.430.0080.04217.23
5.4.420.0030.04617.22
5.4.410.0050.04517.17
5.4.400.0070.03817.07
5.4.390.0080.03817.01
5.4.380.0090.03917.08
5.4.370.0050.03517.16
5.4.360.0030.04017.14
5.4.350.0050.04017.07
5.4.340.0030.03517.10
5.4.330.0090.00315.11
5.4.320.0000.02917.17
5.4.310.0070.04017.14
5.4.300.0060.04117.14
5.4.290.0020.03917.00
5.4.280.0050.04017.03
5.4.270.0090.02117.11
5.4.260.0110.02517.07
5.4.250.0020.04317.09
5.4.240.0060.03317.07
5.4.230.0080.03216.98
5.4.220.0050.03917.16
5.4.210.0050.04017.00
5.4.200.0050.03217.16
5.4.190.0060.04317.02
5.4.180.0050.04017.06
5.4.170.0080.03817.06
5.4.160.0020.04517.02
5.4.150.0080.04117.07
5.4.140.0030.04115.65
5.4.130.0020.04515.82
5.4.120.0070.03715.80
5.4.110.0030.04015.82
5.4.100.0070.03715.75
5.4.90.0020.04615.74
5.4.80.0090.03615.79
5.4.70.0090.03815.75
5.4.60.0080.03815.75
5.4.50.0070.03715.74
5.4.40.0050.04015.79
5.4.30.0030.04215.79
5.4.20.0130.03015.77
5.4.10.0080.03715.73
5.4.00.0020.03315.40
5.3.290.0070.03714.89
5.3.280.0090.03914.86
5.3.270.0050.04014.86
5.3.260.0060.04014.86
5.3.250.0020.03514.85
5.3.240.0050.04514.84
5.3.230.0030.02814.84
5.3.220.0040.03814.82
5.3.210.0080.04014.84
5.3.200.0050.04114.86
5.3.190.0070.04014.83
5.3.180.0050.03814.84
5.3.170.0050.03514.88
5.3.160.0020.04314.86
5.3.150.0060.04214.89
5.3.140.0030.04314.91
5.3.130.0030.04514.81
5.3.120.0040.04214.87
5.3.110.0030.04314.89
5.3.100.0050.04014.54
5.3.90.0030.03714.57
5.3.80.0060.04314.58
5.3.70.0080.03814.60
5.3.60.0050.04214.55
5.3.50.0050.02714.60
5.3.40.0080.03614.53
5.3.30.0030.04314.54
5.3.20.0070.03714.42
5.3.10.0100.03014.45
5.3.00.0030.04314.39
5.2.170.0000.04312.20
5.2.160.0000.06312.20
5.2.150.0030.06312.20
5.2.140.0070.06012.20
5.2.130.0100.04712.20
5.2.120.0070.06012.20
5.2.110.0000.07012.20
5.2.100.0000.05712.20
5.2.90.0070.02712.20
5.2.80.0070.06012.20
5.2.70.0070.05712.20
5.2.60.0070.04012.20
5.2.50.0030.06312.20
5.2.40.0130.05312.20
5.2.30.0000.06712.20
5.2.20.0070.05712.20
5.2.10.0100.05312.20
5.2.00.0000.04712.20
5.1.60.0070.05312.20
5.1.50.0000.05712.20
5.1.40.0030.04312.20
5.1.30.0070.05012.20
5.1.20.0030.06012.20
5.1.10.0000.05712.20
5.1.00.0000.05712.20
5.0.50.0000.05012.20
5.0.40.0030.04312.20
5.0.30.0000.06012.20
5.0.20.0030.02712.20
5.0.10.0000.03312.20
5.0.00.0000.05712.20
4.4.90.0070.02712.20
4.4.80.0000.03712.20
4.4.70.0070.03012.20
4.4.60.0030.03312.20
4.4.50.0000.03712.20
4.4.40.0000.05312.20
4.4.30.0070.02712.20
4.4.20.0000.04012.20
4.4.10.0070.01712.20
4.4.00.0030.05012.20
4.3.110.0000.03712.20
4.3.100.0030.03312.20
4.3.90.0030.03312.20
4.3.80.0030.05012.20
4.3.70.0030.03312.20
4.3.60.0030.03312.20
4.3.50.0000.03712.20
4.3.40.0030.04712.20
4.3.30.0000.03712.20
4.3.20.0070.03312.20
4.3.10.0030.03312.20
4.3.00.0000.03712.20

preferences:
34.66 ms | 401 KiB | 5 Q