3v4l.org

run code in 300+ PHP versions simultaneously
<?php //require_once('./blowfish.php'); //$myfile = fopen("serial.txt", "r") or die("Unable to open file!"); $data='14700902370|0006|Renato Tarabella|renato@tarabella.it|||||'; $iv = '00000000'; // Show not be used anyway. $key = "0123456789ABCDEFF0E1D2C3B4A59687"; $encrypted=mcrypt_encrypt(MCRYPT_BLOWFISH, $key, $data, MCRYPT_MODE_CBC, $iv); $hex=str2hex($encrypted); //fclose($myfile); echo $hex; function crypted($plainText){ $cipher = mcrypt_module_open(MCRYPT_BLOWFISH, '', MCRYPT_MODE_ECB, ''); $iv = 'FEDCBA9876543210'; // Show not be used anyway. $key = "0123456789ABCDEFF0E1D2C3B4A59687"; $cipherText = ""; if (mcrypt_generic_init($cipher, $key, $iv) != -1) { $cipherText = mcrypt_generic($cipher, $plainText); mcrypt_generic_deinit($cipher); } echo str2hex($cipherText); } function str2hex($func_string) { $func_retVal = ''; $func_length = strlen($func_string); for($func_index = 0; $func_index < $func_length; ++$func_index) $func_retVal .= ((($c = dechex(ord($func_string{$func_index}))) && strlen($c) & 2) ? $c : "0{$c}"); return strtoupper($func_retVal); } function String2Hex($string){ $hex=''; for ($i=0; $i < strlen($string); $i++){ $hex .= dechex(ord($string[$i])); } return $hex; } function Hex2String($hex){ $string=''; for ($i=0; $i < strlen($hex)-1; $i+=2){ $string .= chr(hexdec($hex[$i].$hex[$i+1])); } return $string; }

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.0000.01518.68
8.3.50.0070.01418.02
8.3.40.0110.00418.85
8.3.30.0040.01118.57
8.3.20.0000.00719.04
8.3.10.0040.00421.76
8.3.00.0080.00020.77
8.2.180.0120.00916.75
8.2.170.0070.01422.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0000.00721.13
8.2.120.0040.00426.35
8.2.110.0030.00720.96
8.2.100.0080.00317.72
8.2.90.0030.00517.78
8.2.80.0040.00417.97
8.2.70.0000.00817.38
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0030.00620.46
8.2.30.0050.00320.90
8.2.20.0070.00017.82
8.2.10.0070.00017.82
8.2.00.0040.00417.62
8.1.280.0110.00425.92
8.1.270.0000.00822.18
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0000.00822.14
8.1.230.0030.00920.88
8.1.220.0060.00317.74
8.1.210.0000.00919.94
8.1.200.0030.00617.23
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0000.00818.83
8.1.160.0040.00423.96
8.1.150.0070.00018.58
8.1.140.0000.00719.50
8.1.130.0030.00317.63
8.1.120.0040.00417.24
8.1.110.0050.00317.32
8.1.100.0030.00317.38
8.1.90.0050.00217.38
8.1.80.0000.00817.35
8.1.70.0000.00717.23
8.1.60.0000.00717.47
8.1.50.0040.00417.26
8.1.40.0060.00317.38
8.1.30.0000.00817.36
8.1.20.0000.00817.56
8.1.10.0060.00317.41
8.1.00.0080.00017.39
8.0.300.0040.00420.08
8.0.290.0000.00716.63
8.0.280.0070.00018.30
8.0.270.0030.00317.13
8.0.260.0000.00617.07
8.0.250.0030.00616.85
8.0.240.0050.00216.86
8.0.230.0000.00716.79
8.0.220.0000.00716.80
8.0.210.0030.00316.80
8.0.200.0040.00416.92
8.0.190.0030.00516.89
8.0.180.0070.00016.86
8.0.170.0040.00416.93
8.0.160.0000.00716.88
8.0.150.0020.00516.71
8.0.140.0000.00816.86
8.0.130.0000.00613.23
8.0.120.0000.00816.81
8.0.110.0000.00716.84
8.0.100.0050.00216.72
8.0.90.0040.00416.86
8.0.80.0060.00916.79
8.0.70.0000.00716.78
8.0.60.0000.00816.84
8.0.50.0040.00416.66
8.0.30.0090.01017.13
8.0.20.0080.01317.40
8.0.10.0020.00517.07
8.0.00.0090.00916.71
7.4.330.0070.00015.55
7.4.320.0000.00716.61
7.4.300.0030.00316.48
7.4.290.0000.00716.52
7.4.280.0040.00416.47
7.4.270.0080.00016.66
7.4.260.0000.00716.63
7.4.250.0050.00316.56
7.4.240.0030.00316.58
7.4.230.0040.00316.70
7.4.220.0030.01616.63
7.4.210.0090.00616.55
7.4.200.0030.00316.46
7.4.160.0080.00716.58
7.4.150.0150.00417.40
7.4.140.0120.00917.86
7.4.130.0080.00916.62
7.4.120.0110.00916.52
7.4.110.0100.00716.52
7.4.100.0100.01016.43
7.4.90.0120.00616.62
7.4.80.0060.01019.39
7.4.70.0100.00916.46
7.4.60.0100.00716.47
7.4.50.0060.00916.14
7.4.40.0100.01016.70
7.4.30.0100.01016.32
7.4.10.0100.00315.10
7.4.00.0070.01214.89
7.3.330.0000.00813.36
7.3.320.0060.00013.36
7.3.310.0040.00416.14
7.3.300.0050.00216.22
7.3.290.0030.00616.30
7.3.280.0110.00816.35
7.3.270.0120.00417.40
7.3.260.0090.00916.40
7.3.250.0090.00716.46
7.3.240.0110.01016.27
7.3.230.0130.01016.66
7.3.210.0110.00716.43
7.3.200.0140.00316.51
7.3.190.0030.01816.40
7.3.180.0130.00316.33
7.3.170.0100.00716.40
7.3.160.0060.01016.43
7.3.130.0060.01214.70
7.3.120.0100.00614.46
7.3.110.0150.00314.90
7.3.100.0130.00014.94
7.3.90.0060.00614.83
7.3.80.0050.00914.57
7.3.70.0100.00314.80
7.3.60.0060.00914.60
7.3.50.0070.00414.73
7.3.40.0130.00014.57
7.3.30.0060.00314.60
7.3.20.0060.00616.29
7.3.10.0050.00816.37
7.3.00.0080.00716.47
7.2.330.0070.01016.53
7.2.320.0100.00716.59
7.2.310.0100.00716.63
7.2.300.0040.01416.28
7.2.290.0160.00616.54
7.2.260.0070.01114.73
7.2.250.0030.01315.06
7.2.240.0040.01114.95
7.2.230.0120.00314.49
7.2.220.0040.00715.20
7.2.210.0000.01115.17
7.2.200.0070.01014.80
7.2.190.0090.00014.64
7.2.180.0080.00414.90
7.2.170.0090.00614.59
7.2.160.0100.00314.86
7.2.150.0100.00716.84
7.2.140.0040.01116.49
7.2.130.0090.00816.72
7.2.120.0060.00716.69
7.2.110.0160.00716.49
7.2.100.0060.00816.87
7.2.90.0070.00816.71
7.2.80.0070.00816.55
7.2.70.0080.00516.75
7.2.60.0070.00716.78
7.2.50.0070.00616.79
7.2.40.0050.00916.82
7.2.30.0040.00716.84
7.2.20.0090.00516.56
7.2.10.0080.00516.63
7.2.00.0090.00617.31
7.1.330.0030.01115.76
7.1.320.0070.01015.56
7.1.310.0120.00015.43
7.1.300.0060.00615.63
7.1.290.0040.01115.59
7.1.280.0060.00615.52
7.1.270.0090.00615.74
7.1.260.0060.00315.64
7.1.250.0050.00815.63
7.1.240.0030.00715.49
7.1.230.0100.00315.62
7.1.220.0110.00415.48
7.1.210.0140.00015.44
7.1.200.0070.00715.53
7.1.190.0080.00315.46
7.1.180.0070.00715.54
7.1.170.0030.01015.59
7.1.160.0140.00015.74
7.1.150.0060.00615.37
7.1.140.0110.00415.77
7.1.130.0070.00715.68
7.1.120.0070.00715.61
7.1.110.0040.00715.64
7.1.100.0020.01116.89
7.1.90.0080.00415.48
7.1.80.0000.01215.44
7.1.70.0090.00316.45
7.1.60.0060.01016.35
7.1.50.0110.01016.32
7.1.40.0040.00916.09
7.1.30.0050.01015.96
7.1.20.0070.00916.28
7.1.10.0020.01115.91
7.1.00.0030.00815.89
7.0.330.0000.01415.32
7.0.320.0000.01615.41
7.0.310.0060.00315.14
7.0.300.0080.00615.47
7.0.290.0070.00315.42
7.0.280.0030.00915.14
7.0.270.0030.00915.25
7.0.260.0070.00315.13
7.0.250.0060.00915.34
7.0.240.0000.01415.08
7.0.230.0080.00815.07
7.0.220.0040.00815.30
7.0.210.0040.00415.18
7.0.200.0050.00916.03
7.0.190.0070.00715.78
7.0.180.0120.00315.85
7.0.170.0090.00515.87
7.0.160.0140.00015.52
7.0.150.0060.01015.69
7.0.140.0100.00815.82
7.0.130.0070.00615.85
7.0.120.0100.00615.80
7.0.110.0040.01215.77
7.0.100.0050.00715.95
7.0.90.0030.00915.62
7.0.80.0080.00815.76
7.0.70.0100.00315.81
7.0.60.0010.01215.63
7.0.50.0040.00615.87
7.0.40.0100.00514.29
7.0.30.0030.01114.28
7.0.20.0040.01114.17
7.0.10.0070.00314.26
7.0.00.0040.00814.28
5.6.400.0100.00314.16
5.6.390.0060.00613.88
5.6.380.0030.01314.39
5.6.370.0040.01414.15
5.6.360.0060.00614.33
5.6.350.0070.00714.22
5.6.340.0120.00614.18
5.6.330.0090.00014.42
5.6.320.0140.00314.09
5.6.310.0070.00714.23
5.6.300.0090.02217.49
5.6.290.0090.04417.54
5.6.280.0090.03717.58
5.6.270.0040.03117.62
5.6.260.0000.05317.46
5.6.250.0090.04317.74
5.6.240.0000.03317.70
5.6.230.0100.02217.57
5.6.220.0090.02417.51
5.6.210.0070.02817.57
5.6.200.0070.02417.55
5.6.190.0140.02117.47
5.6.180.0130.02117.50
5.6.170.0050.02517.54
5.6.160.0100.02117.50
5.6.150.0050.04417.83
5.6.140.0110.02817.46
5.6.130.0040.02717.67
5.6.120.0040.03017.71
5.6.110.0050.02917.43
5.6.100.0050.02917.52
5.6.90.0040.03217.29
5.6.80.0120.03017.24
5.6.70.0170.02017.29
5.6.60.0100.02817.29
5.6.50.0100.02317.07
5.6.40.0140.02317.23
5.6.30.0150.02017.13
5.6.20.0130.02317.22
5.6.10.0070.02817.26
5.6.00.0080.02317.21

preferences:
60.16 ms | 401 KiB | 5 Q