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; } 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.4.70.0090.01016.35
7.4.60.0060.01316.49
7.4.50.0090.00916.44
7.4.40.0080.00916.46
7.4.30.0070.01116.28
7.4.20.0070.00916.14
7.4.10.0100.00716.29
7.4.00.0050.01416.69
7.3.190.0110.00916.30
7.3.180.0120.00716.38
7.3.170.0070.01116.41
7.3.160.0110.00816.28
7.3.150.0110.00816.39
7.3.140.0150.00516.36
7.3.130.0070.01016.45
7.3.120.0050.01116.26
7.3.110.0090.00916.36
7.3.100.0070.01016.52
7.3.90.0100.00616.45
7.3.80.0100.00616.44
7.3.70.0070.00916.43
7.3.60.0100.00816.33
7.3.50.0170.00616.36
7.3.40.0060.01116.25
7.3.30.0080.00916.40
7.3.20.0110.00816.34
7.3.10.0090.00916.36
7.3.00.0090.00716.20
7.2.310.0120.00616.66
7.2.300.0070.01016.64
7.2.290.0110.00616.59
7.2.280.0120.00516.62
7.2.270.0080.00916.61
7.2.260.0080.00916.52
7.2.250.0100.00616.42
7.2.240.0070.01016.43
7.2.230.0110.00716.54
7.2.220.0050.01216.43
7.2.210.0060.01016.58
7.2.200.0050.01316.20
7.2.190.0090.00916.54
7.2.180.0090.01116.48
7.2.170.0030.01316.51
7.2.160.0060.01116.46
7.2.150.0110.00816.57
7.2.140.0100.00816.59
7.2.130.0150.00616.57
7.2.120.0120.00816.61
7.2.110.0050.01216.53
7.2.100.0110.00816.62
7.2.90.0310.01116.54
7.2.80.0080.01016.60
7.2.70.0100.00816.62
7.2.60.0050.01416.53
7.2.50.0080.01616.48
7.2.40.0050.01316.60
7.2.30.0050.01316.68
7.2.20.0060.01216.54
7.2.10.0220.01016.54
7.2.00.0340.00616.57
7.1.330.0240.01215.42
7.1.320.0220.00815.66
7.1.310.0230.00615.40
7.1.300.0170.00915.39
7.1.290.0160.00915.60
7.1.280.0110.01415.40
7.1.270.0180.00715.49
7.1.260.0180.00815.51
7.1.250.0200.00915.42
7.1.240.0160.01015.41
7.1.230.0150.01015.42
7.1.220.0150.01015.29
7.1.210.0190.00615.46
7.1.200.0140.01215.48
7.1.190.0140.01415.35
7.1.180.0150.01015.50
7.1.170.0150.01115.47
7.1.160.0150.01015.39
7.1.150.0150.00915.30
7.1.140.0150.01115.36
7.1.130.0220.00415.46
7.1.120.0170.00715.35
7.1.110.0170.00815.46
7.1.100.0160.00815.37
7.1.90.0090.01515.52
7.1.80.0230.00315.51
7.1.70.0150.01315.44
7.1.60.0270.01021.31
7.1.50.0210.01621.21
7.1.40.0190.01121.71
7.1.30.0190.01421.72
7.1.20.0160.01221.84
7.1.10.0140.01015.83
7.1.00.0180.00815.79
7.0.330.0110.01115.19
7.0.320.0230.01015.16
7.0.310.0170.00815.28
7.0.300.0140.00815.15
7.0.290.0180.00515.11
7.0.280.0150.00715.13
7.0.270.0190.00815.09
7.0.260.0170.00915.22
7.0.250.0150.00815.17
7.0.240.0160.00815.26
7.0.230.0110.01315.19
7.0.220.0120.01215.14
7.0.210.0170.00715.07
7.0.200.0200.00415.11
7.0.190.0120.01414.90
7.0.180.0270.01015.56
7.0.170.0160.01015.50
7.0.160.0230.00615.46
7.0.150.0140.00815.50
7.0.140.0130.01015.47
7.0.130.0210.00515.53
7.0.120.0110.01215.73
7.0.110.0090.01415.57
7.0.100.0160.00715.53
7.0.90.0130.01315.55
7.0.80.0110.01115.55
7.0.70.0120.00915.47
7.0.60.0110.01215.47
7.0.50.0160.00915.59
7.0.40.0110.01315.59
7.0.30.0120.01115.58
7.0.20.0140.01215.62
7.0.10.0140.00715.55
7.0.00.0160.00615.54
5.6.400.0140.01115.92
5.6.390.0110.01515.54
5.6.380.0140.00915.94
5.6.370.0160.01215.82
5.6.360.0140.01415.85
5.6.350.0180.00915.59
5.6.340.0120.01315.68
5.6.330.0180.01015.96
5.6.320.0150.01115.66
5.6.310.0200.00615.50
5.6.300.0150.01115.68
5.6.290.0150.00915.48
5.6.280.0100.01515.62
5.6.270.0100.01315.67
5.6.260.0200.00715.65
5.6.250.0170.01115.86
5.6.240.0160.01315.75
5.6.230.0200.00515.89
5.6.220.0110.01415.75
5.6.210.0180.00915.94
5.6.200.0140.01215.84
5.6.190.0150.01115.85
5.6.180.0150.01215.91
5.6.170.0180.01015.83
5.6.160.0150.01015.73
5.6.150.0160.00815.81
5.6.140.0110.01315.79
5.6.130.0110.01515.85
5.6.120.0200.00715.76
5.6.110.0170.00815.79
5.6.100.0140.01116.02
5.6.90.0150.01115.81
5.6.80.0190.00515.90
5.6.70.0150.01215.68
5.6.60.0090.01315.80
5.6.50.0140.00915.69
5.6.40.0150.00815.80
5.6.30.0130.01015.77
5.6.20.0110.01215.71
5.6.10.0160.00815.88
5.6.00.0120.01415.75
5.5.380.0150.00915.48
5.5.370.0040.01716.02
5.5.360.0090.01515.53
5.5.350.0190.01015.86
5.5.340.0220.00815.87
5.5.330.0240.00715.93
5.5.320.0280.00015.79
5.5.310.0170.00915.98
5.5.300.0200.00515.63
5.5.290.0160.00815.42
5.5.280.0130.01015.63
5.5.270.0060.01615.54
5.5.260.0190.00515.83
5.5.250.0150.00915.65
5.5.240.0180.00715.83
5.5.230.0180.00715.82
5.5.220.0140.00915.44
5.5.210.0200.00415.25
5.5.200.0200.00015.54
5.5.190.0090.01415.53
5.5.180.0110.01015.33
5.5.170.0110.01415.35
5.5.160.0180.00915.35
5.5.150.0070.01815.48
5.5.140.0110.01315.27
5.5.130.0080.01615.29
5.5.120.0150.00815.47
5.5.110.0110.01115.45
5.5.100.0110.01115.90
5.5.90.0140.00815.33
5.5.80.0110.01115.34
5.5.70.0180.00915.40
5.5.60.0130.00915.64
5.5.50.0210.00015.68
5.5.40.0140.01015.47
5.5.30.0190.00415.60
5.5.20.0150.00915.56
5.5.10.0190.00515.26
5.5.00.0180.00415.33
5.4.450.0120.00412.51
5.4.440.0030.01312.51
5.4.430.0070.01112.62
5.4.420.0110.00712.54
5.4.410.0170.00012.69
5.4.400.0030.01312.22
5.4.390.0090.00812.37
5.4.380.0100.00712.29
5.4.370.0110.00612.49
5.4.360.0140.00312.41
5.4.350.0100.00712.37
5.4.340.0060.00912.48
5.4.330.0120.00612.54
5.4.320.0180.00012.39
5.4.310.0150.00812.56
5.4.300.0080.01112.33
5.4.290.0060.01512.34
5.4.280.0110.00512.27
5.4.270.0060.01212.49
5.4.260.0140.00412.45
5.4.250.0100.00712.48
5.4.240.0140.00312.66
5.4.230.0120.00412.21
5.4.220.0140.00412.50
5.4.210.0070.01112.46
5.4.200.0120.00612.48
5.4.190.0080.00812.14
5.4.180.0110.00712.27
5.4.170.0130.00412.34
5.4.160.0080.00812.26
5.4.150.0110.00612.30
5.4.140.0090.00912.40
5.4.130.0120.00512.49
5.4.120.0100.01412.53
5.4.110.0130.01012.15
5.4.100.0080.01312.43
5.4.90.0120.00612.41
5.4.80.0110.01112.36
5.4.70.0080.00812.30
5.4.60.0100.00612.46
5.4.50.0160.00012.33
5.4.40.0080.00812.42
5.4.30.0080.00812.47
5.4.20.0140.00312.51
5.4.10.0060.00612.82
5.4.00.0030.01212.83
5.3.290.0060.00913.23
5.3.280.0080.00812.97
5.3.270.0070.01113.01
5.3.260.0100.00613.03
5.3.250.0070.00713.04
5.3.240.0030.01312.93
5.3.230.0000.01512.97
5.3.220.0100.01012.91
5.3.210.0130.00412.93
5.3.200.0040.01213.06
5.3.190.0150.00313.10
5.3.180.0100.01013.16
5.3.170.0050.00813.13
5.3.160.0060.00913.29
5.3.150.0040.01013.19
5.3.140.0060.00913.17
5.3.130.0070.00713.20
5.3.120.0070.00713.05
5.3.110.0110.00413.03
5.3.100.0110.00413.05
5.3.90.0070.00813.20
5.3.80.0090.00812.97
5.3.70.0000.01413.11
5.3.60.0220.00413.16
5.3.50.0140.00913.05
5.3.40.0200.01613.10
5.3.30.0190.00613.21
5.3.20.0090.01213.15
5.3.10.0080.01313.02
5.3.00.0070.01412.99
5.2.170.0050.01412.34
5.2.160.0160.00412.09
5.2.150.0160.00712.19
5.2.140.0210.00012.01
5.2.130.0100.01012.28
5.2.120.0170.00012.13
5.2.110.0090.00911.98
5.2.100.0080.00812.16
5.2.90.0140.00612.16
5.2.80.0030.01212.11
5.2.70.0020.01212.23
5.2.60.0100.00311.85
5.2.50.0090.00912.09
5.2.40.0080.00512.22
5.2.30.0120.01112.04
5.2.20.0030.00911.79
5.2.10.0000.01111.71
5.2.00.0100.00611.47
5.1.60.0100.00510.95
5.1.50.0080.00311.22
5.1.40.0110.00511.09
5.1.30.0120.00911.18
5.1.20.0110.00411.00
5.1.10.0050.01111.26
5.1.00.0150.00311.03
5.0.50.0120.0039.98
5.0.40.0130.0009.75
5.0.30.0030.0069.84
5.0.20.0020.0099.80
5.0.10.0000.0099.77
5.0.00.0030.0079.60
4.4.90.0020.0049.29
4.4.80.0070.0039.29
4.4.70.0030.0039.29
4.4.60.0000.0059.29
4.4.50.0000.0079.29
4.4.40.0060.0039.29
4.4.30.0030.0059.29
4.4.20.0090.0039.29
4.4.10.0050.0059.29
4.4.00.0000.0059.29
4.3.110.0080.0009.29
4.3.100.0040.0049.29
4.3.90.0040.0049.29
4.3.80.0070.0009.29
4.3.70.0070.0009.29
4.3.60.0040.0029.29
4.3.50.0040.0049.29
4.3.40.0080.0009.29
4.3.30.0000.0079.29
4.3.20.0000.0079.29
4.3.10.0070.0009.29
4.3.00.0040.0039.29

preferences:
41.32 ms | 401 KiB | 5 Q