3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stypr_encrypt($str){ $strings = $str; $MyKey = rand(1,1024); unset($tmp); for ($i = 0; $i < strlen($strings); $i++) { ++$n; $cal = ($n * $n) ^ hexdec("3E"); $tmp = $tmp . substr("00000".dechex(decoct(ord(substr($strings, $i, 1)) ^ ($MyKey ^ hexdec('AFE43') ^ hexdec('399AA3') ^ ($cal)))), -6); } $tmp = strtoupper(strrev(substr("000".dechex($MyKey ^ hexdec('BFF') ^ hexdec('D77D')), -4).$tmp)); return $tmp; } echo stypr_encrypt("pwning_the_phpreverse!");

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.3.120.0030.01414.60
7.3.110.0120.00314.82
7.3.100.0100.00714.63
7.3.90.0100.00714.86
7.3.80.0000.01814.90
7.3.70.0090.00615.00
7.3.60.0060.00914.54
7.3.50.0100.00714.61
7.3.40.0040.01114.93
7.3.30.0000.01614.95
7.3.20.0110.00416.71
7.3.10.0040.01216.48
7.3.00.0090.00616.81
7.2.240.0070.01114.96
7.2.230.0030.00915.29
7.2.220.0130.00314.84
7.2.210.0030.01315.23
7.2.200.0060.00915.22
7.2.190.0090.00614.79
7.2.180.0030.01015.14
7.2.170.0070.01115.10
7.2.160.0070.01015.14
7.2.150.0000.01516.71
7.2.140.0070.01017.11
7.2.130.0070.01017.13
7.2.120.0110.00716.75
7.2.110.0060.01017.03
7.2.100.0110.00716.85
7.2.90.0060.00917.02
7.2.80.0090.00616.85
7.2.70.0060.01216.95
7.2.60.0080.00716.96
7.2.50.0090.00617.07
7.2.40.0080.01116.95
7.2.30.0040.01116.85
7.2.20.0070.01016.97
7.2.10.0080.00417.00
7.2.00.0050.01018.27
7.1.330.0040.00815.94
7.1.320.0070.01015.51
7.1.310.0060.00615.75
7.1.300.0070.00315.90
7.1.290.0070.00715.44
7.1.280.0030.01315.74
7.1.270.0070.00715.74
7.1.260.0030.01015.80
7.1.250.0040.01115.84
7.1.100.0000.01317.92
7.1.70.0070.01417.34
7.1.60.0220.01335.27
7.1.50.0270.01334.68
7.1.40.0290.01234.50
7.1.30.0280.01034.52
7.1.20.0230.01834.61
7.1.10.0040.01416.67
7.1.00.0070.01216.71
7.0.200.0060.01216.47
7.0.190.0100.01216.48
7.0.180.0030.01716.18
7.0.170.0140.00616.34
7.0.160.0070.01416.20
7.0.150.0070.01116.31
7.0.140.0000.01516.25
7.0.130.0140.00216.45
7.0.120.0030.01416.43
7.0.110.0070.01116.25
7.0.100.0030.01516.26
7.0.90.0070.01416.37
7.0.80.0090.01116.42
7.0.70.0090.01316.17
7.0.60.0120.00616.21
7.0.50.0060.00916.28
7.0.40.0060.00916.38
7.0.30.0050.01116.52
7.0.20.0000.01916.38
7.0.10.0060.01016.37
7.0.00.0030.01616.36

preferences:
31.13 ms | 401 KiB | 5 Q