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('84EBFD76EBFD62EBFD80EBFD0CDBFD69DBFD85DBFD650CFD920CFDCDFBFD5BFBFDF4FBFD87FBFDE6FBFD16FBFD5FEBFD61FBFDEFEBFDA0FBFDAEEBFD20FBFD00FBFD93FD') . "<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.0060.01216.75
8.3.50.0070.00716.29
8.3.40.0130.00318.73
8.3.30.0070.00718.79
8.3.20.0040.00420.33
8.3.10.0080.00023.66
8.3.00.0080.00017.87
8.2.180.0110.00416.63
8.2.170.0090.00622.96
8.2.160.0070.01022.04
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00019.24
8.2.120.0000.00826.35
8.2.110.0030.00722.26
8.2.100.0040.00718.16
8.2.90.0050.00319.17
8.2.80.0000.00817.97
8.2.70.0030.00517.49
8.2.60.0000.00817.68
8.2.50.0040.00418.10
8.2.40.0060.00320.59
8.2.30.0000.00719.21
8.2.20.0030.00618.02
8.2.10.0050.00318.05
8.2.00.0050.00218.04
8.1.280.0130.00325.92
8.1.270.0000.00723.97
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.79
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0090.00017.35
8.1.180.0080.00018.10
8.1.170.0040.00418.73
8.1.160.0070.00019.04
8.1.150.0040.00420.59
8.1.140.0070.00019.60
8.1.130.0000.00818.95
8.1.120.0030.00517.52
8.1.110.0040.00417.37
8.1.100.0040.00417.43
8.1.90.0040.00717.38
8.1.80.0070.00017.46
8.1.70.0040.00417.48
8.1.60.0000.00817.58
8.1.50.0090.00017.60
8.1.40.0000.00717.43
8.1.30.0040.00417.50
8.1.20.0000.00717.59
8.1.10.0080.00017.49
8.1.00.0000.00717.48
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.46
8.0.270.0040.00417.28
8.0.260.0030.00316.86
8.0.250.0030.00317.01
8.0.240.0040.00416.96
8.0.230.0040.00417.02
8.0.220.0030.00316.97
8.0.210.0030.00416.98
8.0.200.0070.00017.03
8.0.190.0000.00817.00
8.0.180.0040.00416.96
8.0.170.0030.00317.00
8.0.160.0000.00817.05
8.0.150.0070.00016.88
8.0.140.0030.00516.93
8.0.130.0030.00313.40
8.0.120.0080.00016.93
8.0.110.0040.00416.75
8.0.100.0000.00716.91
8.0.90.0040.00416.92
8.0.80.0040.01116.92
8.0.70.0000.00717.04
8.0.60.0000.00716.84
8.0.50.0070.00017.00
8.0.30.0120.00517.10
8.0.20.0070.01317.40
8.0.10.0050.00217.01
8.0.00.0060.01217.02
7.4.330.0000.00615.55
7.4.320.0000.00616.61
7.4.300.0000.00716.53
7.4.290.0030.00316.54
7.4.280.0000.00816.44
7.4.270.0070.00016.64
7.4.260.0060.00013.19
7.4.250.0000.00716.47
7.4.240.0000.00816.55
7.4.230.0030.00316.55
7.4.220.0120.00916.44
7.4.210.0090.00616.54
7.4.200.0070.00016.42
7.4.160.0020.01416.62
7.4.150.0070.01117.40
7.4.140.0090.01017.86
7.4.130.0060.01916.59
7.4.120.0090.01216.67
7.4.110.0090.01216.63
7.4.100.0070.01016.50
7.4.90.0090.00916.54
7.4.80.0170.00719.39
7.4.70.0140.00616.32
7.4.60.0090.00616.75
7.4.50.0060.00916.64
7.4.40.0070.01016.57
7.4.30.0030.01816.44
7.4.00.0090.00614.95
7.3.330.0030.00313.27
7.3.320.0050.00013.47
7.3.310.0000.00916.48
7.3.300.0030.00316.45
7.3.290.0080.00916.43
7.3.280.0080.01016.42
7.3.270.0060.01017.40
7.3.260.0110.00616.54
7.3.250.0090.01316.45
7.3.240.0080.00916.55
7.3.230.0080.00816.46
7.3.210.0090.00916.43
7.3.200.0030.01316.42
7.3.190.0110.00516.73
7.3.180.0080.00816.48
7.3.170.0070.01416.38
7.3.160.0100.00716.42
7.2.330.0090.00816.51
7.2.320.0120.00616.70
7.2.310.0090.00916.67
7.2.300.0110.00616.63
7.2.290.0070.01016.75
7.2.60.0080.00816.91
7.2.00.0120.00419.59
7.1.200.0040.01215.95
7.1.100.0000.00918.03
7.1.70.0040.00817.28
7.1.60.0210.01434.83
7.1.50.0230.01234.79
7.1.40.0140.01234.36
7.1.30.0170.01034.62
7.1.20.0220.00434.48
7.1.10.0060.00616.63
7.1.00.0080.00816.42
7.0.200.0030.01216.86
7.0.190.0030.01316.83
7.0.180.0000.01216.23
7.0.170.0030.00916.25
7.0.160.0060.00616.13
7.0.150.0020.01016.31
7.0.140.0060.00716.42
7.0.130.0060.00616.66
7.0.120.0030.00916.56
7.0.110.0000.01216.56
7.0.100.0070.00616.09
7.0.90.0060.00616.33
7.0.80.0030.00916.35
7.0.70.0060.00616.25
7.0.60.0070.00715.98
7.0.50.0080.00416.48
7.0.40.0030.01016.64
7.0.30.0000.01116.44
7.0.20.0060.00616.36
7.0.10.0040.00816.29
7.0.00.0070.00416.35

preferences:
52.7 ms | 401 KiB | 5 Q