3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decrypt($a) { $strings = strtolower(strrev($a)); $MyKey = hexdec(substr($strings, 0, 4)) ^ hexdec('BFF') ^ hexdec('D77D'); $Temps = substr($strings, 4); unset($tmp); //echo $n; for ($i = 0; $i < strlen($Temps); $i+=6) { ++$n; $cal = ($n * $n) ^ hexdec("3E"); //echo chr(octdec(hexdec(substr($Temps, $i, 6))) ^ ($MyKey ^ hexdec("AFE43") ^ hexdec("399AA3") ^ $cal)) . "\n"; $tmp = $tmp . chr(octdec(hexdec(substr($Temps, $i, 6))) ^ ($MyKey ^ hexdec('AFE43') ^ hexdec('399AA3') ^ $cal)); } return $tmp; } echo decrypt('8DABFDBDABFD7AABFD7CABFDECCD') . "<br>"; define('__FLAG__', 'flag{hidden_flag}'); if(decrypt('DEFBFD2EFBFDBCFBFD58FBFD56FBFD31FBFDDFEBFD3BEBFD48EBFD16EBFD83EBFD2DDBFDDFDBFDBCDBFDCBDBFD87DBFDB9DBFDB5DBFD76DBFDF6DBFDF5DBFDD5DBFD82ED') == 'pwning_the_phpreverse!') { echo __FLAG__; } ?>

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)
8.3.60.0110.01118.56
8.3.50.0060.00916.40
8.3.40.0090.00918.96
8.3.30.0040.01118.78
8.3.20.0080.00020.29
8.3.10.0040.00423.66
8.3.00.0060.00317.77
8.2.180.0080.00816.38
8.2.170.0110.00322.96
8.2.160.0100.00722.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.08
8.2.120.0040.00426.35
8.2.110.0000.01122.27
8.2.100.0090.00318.03
8.2.90.0030.00619.17
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0000.00817.93
8.2.50.0080.00018.10
8.2.40.0000.00820.59
8.2.30.0040.00419.35
8.2.20.0030.00618.21
8.2.10.0030.00618.06
8.2.00.0040.00418.14
8.1.280.0070.00725.92
8.1.270.0000.00823.59
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0000.01022.05
8.1.230.0070.00317.52
8.1.220.0000.00817.76
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0030.00518.66
8.1.160.0020.00518.99
8.1.150.0040.00420.67
8.1.140.0000.00719.67
8.1.130.0030.00318.82
8.1.120.0000.00817.49
8.1.110.0040.00417.36
8.1.100.0000.00717.50
8.1.90.0080.00317.52
8.1.80.0040.00417.41
8.1.70.0040.00417.49
8.1.60.0030.00617.60
8.1.50.0030.00517.44
8.1.40.0000.00717.40
8.1.30.0000.00817.64
8.1.20.0000.00817.57
8.1.10.0050.00317.52
8.1.00.0000.00717.46
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0080.00017.21
8.0.260.0000.00616.90
8.0.250.0030.00317.02
8.0.240.0040.00416.95
8.0.230.0040.00417.04
8.0.220.0030.00317.01
8.0.210.0030.00316.93
8.0.200.0040.00417.10
8.0.190.0030.00616.98
8.0.180.0000.00817.04
8.0.170.0040.00416.95
8.0.160.0080.00017.02
8.0.150.0040.00416.80
8.0.140.0000.00716.88
8.0.130.0030.00313.45
8.0.120.0030.00517.05
8.0.110.0040.00416.82
8.0.100.0070.00016.82
8.0.90.0000.00716.85
8.0.80.0080.00717.02
8.0.70.0040.00416.87
8.0.60.0040.00417.05
8.0.50.0050.00216.94
8.0.30.0100.00916.99
8.0.20.0080.01217.40
8.0.10.0050.00217.05
8.0.00.0060.01116.53
7.4.330.0030.00315.55
7.4.320.0000.00716.62
7.4.300.0030.00316.42
7.4.290.0070.00016.38
7.4.280.0070.00016.54
7.4.270.0000.00716.55
7.4.260.0000.00513.33
7.4.250.0030.00516.59
7.4.240.0000.00816.64
7.4.230.0030.00316.71
7.4.220.0060.01216.66
7.4.210.0040.01116.73
7.4.200.0030.00316.56
7.4.160.0080.00816.43
7.4.150.0130.00417.40
7.4.140.0120.01017.86
7.4.130.0090.01416.63
7.4.120.0130.00716.50
7.4.110.0060.01216.53
7.4.100.0070.01016.61
7.4.90.0150.00316.63
7.4.80.0100.02019.39
7.4.70.0040.01316.48
7.4.60.0060.01016.69
7.4.50.0090.00916.48
7.4.40.0100.00616.57
7.4.30.0190.00016.53
7.4.00.0070.00714.79
7.3.330.0050.00013.30
7.3.320.0000.00513.45
7.3.310.0000.00716.34
7.3.300.0000.00716.36
7.3.290.0090.00516.43
7.3.280.0080.00916.46
7.3.270.0100.01017.40
7.3.260.0110.00716.53
7.3.250.0080.01116.52
7.3.240.0080.01116.59
7.3.230.0090.00816.59
7.3.210.0060.01616.52
7.3.200.0090.00616.44
7.3.190.0100.01016.53
7.3.180.0090.01216.51
7.3.170.0140.00716.65
7.3.160.0110.00616.58
7.2.330.0110.00716.79
7.2.320.0060.01516.73
7.2.310.0100.00616.58
7.2.300.0070.01016.79
7.2.290.0060.01116.73
7.2.60.0060.00916.68
7.1.200.0090.00315.78
7.1.70.0060.01017.30
7.1.60.0190.01835.02
7.1.50.0200.01834.84
7.1.40.0130.01734.19
7.1.30.0120.01534.39
7.1.20.0250.00734.48
7.1.10.0030.01016.81
7.1.00.0030.01316.60
7.0.200.0110.00616.76
7.0.190.0100.01016.70
7.0.180.0030.01216.32
7.0.170.0090.00316.32
7.0.160.0070.00716.19
7.0.150.0060.00616.32
7.0.140.0000.01516.20
7.0.130.0030.01316.26
7.0.120.0070.01016.58
7.0.110.0030.01016.56
7.0.100.0100.00316.23
7.0.90.0030.01216.46
7.0.80.0100.00316.27
7.0.70.0000.01316.38
7.0.60.0030.01316.13
7.0.50.0060.00616.57
7.0.40.0040.00816.52
7.0.30.0000.01216.52
7.0.20.0060.00616.44
7.0.10.0060.00616.45
7.0.00.0000.01316.30

preferences:
39.53 ms | 400 KiB | 5 Q