3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text ='some text'; $salt ='whatever_you_want'; function simple_encrypt($text,$salt) { return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $salt, $text, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)))); } function simple_decrypt($text,$salt) { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $salt, base64_decode($text), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))); } echo simple_encrypt(); ?>

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.0090.00616.63
8.3.50.0100.01421.99
8.3.40.0110.00418.80
8.3.30.0060.00918.84
8.3.20.0080.00020.38
8.3.10.0040.00423.36
8.3.00.0050.00319.50
8.2.180.0040.01116.75
8.2.170.0040.01422.96
8.2.160.0070.00720.21
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00821.18
8.2.110.0040.00420.97
8.2.100.0100.00617.87
8.2.90.0000.00817.91
8.2.80.0040.00419.16
8.2.70.0060.00317.47
8.2.60.0000.00817.63
8.2.50.0040.00417.55
8.2.40.0000.00917.62
8.2.30.0040.00420.71
8.2.20.0040.00417.72
8.2.10.0040.00417.98
8.2.00.0060.00318.11
8.1.280.0180.00325.92
8.1.270.0050.00323.83
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0060.00322.29
8.1.230.0080.00420.90
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0050.00317.22
8.1.180.0040.00818.10
8.1.170.0000.00817.62
8.1.160.0020.00521.91
8.1.150.0040.00418.89
8.1.140.0040.00419.50
8.1.130.0030.00317.68
8.1.120.0040.00417.40
8.1.110.0000.00717.27
8.1.100.0050.00317.28
8.1.90.0000.00817.42
8.1.80.0090.00017.34
8.1.70.0000.00717.29
8.1.60.0040.00417.57
8.1.50.0000.00817.52
8.1.40.0040.00417.40
8.1.30.0030.00717.56
8.1.20.0080.00017.68
8.1.10.0000.00717.46
8.1.00.0000.00817.45
8.0.300.0000.00720.09
8.0.290.0080.00016.75
8.0.280.0030.00318.42
8.0.270.0030.00317.14
8.0.260.0000.00817.14
8.0.250.0000.00816.97
8.0.240.0000.00716.84
8.0.230.0030.00316.86
8.0.220.0080.00016.75
8.0.210.0030.00316.95
8.0.200.0020.00516.94
8.0.190.0030.00616.82
8.0.180.0060.00316.80
8.0.170.0040.00416.89
8.0.160.0030.00616.79
8.0.150.0000.00816.79
8.0.140.0070.00016.72
8.0.130.0000.00613.20
8.0.120.0050.00316.91
8.0.110.0000.00716.88
8.0.100.0040.00416.71
8.0.90.0040.00416.92
8.0.80.0000.01416.88
8.0.70.0050.00216.94
8.0.60.0040.00416.75
8.0.50.0080.00016.82
8.0.30.0030.01616.89
8.0.20.0100.00917.40
8.0.10.0080.00016.85
8.0.00.0080.00916.72
7.4.330.0110.00415.08
7.4.320.0040.00416.44
7.4.300.0070.00016.45
7.4.290.0000.00716.59
7.4.280.0070.00016.61
7.4.270.0030.00316.44
7.4.260.0070.00016.49
7.4.250.0030.00316.34
7.4.240.0050.00216.64
7.4.230.0000.00716.70
7.4.220.0060.01216.69
7.4.210.0050.00916.54
7.4.200.0030.00316.51
7.4.160.0060.01016.43
7.4.150.0100.00717.40
7.4.140.0060.01417.86
7.4.130.0110.00616.60
7.4.120.0090.01116.59
7.4.110.0100.01016.54
7.4.100.0070.01716.64
7.4.90.0030.01316.48
7.4.80.0130.00719.39
7.4.70.0030.01616.70
7.4.60.0030.01616.41
7.4.50.0040.00416.47
7.4.40.0040.01516.65
7.4.30.0090.00916.50
7.4.00.0050.01014.96
7.3.330.0000.00613.14
7.3.320.0030.00313.33
7.3.310.0030.00316.35
7.3.300.0030.00416.16
7.3.290.0040.00416.20
7.3.280.0100.01016.27
7.3.270.0130.00617.40
7.3.260.0160.00316.32
7.3.250.0100.00816.31
7.3.240.0110.00616.29
7.3.230.0110.00616.39
7.3.210.0100.00616.53
7.3.200.0100.00616.32
7.3.190.0180.00416.23
7.3.180.0140.01116.55
7.3.170.0060.01016.27
7.3.160.0040.01516.47
7.3.120.0100.00714.53
7.3.110.0090.00914.84
7.3.100.0070.01014.59
7.3.90.0050.00514.95
7.3.80.0070.00714.79
7.3.70.0080.00814.71
7.3.60.0030.00614.69
7.3.50.0060.00614.90
7.3.40.0090.00014.63
7.3.30.0060.00614.82
7.3.20.0060.00616.75
7.3.10.0030.00716.36
7.3.00.0060.00816.61
7.2.330.0100.00716.48
7.2.320.0100.00716.52
7.2.310.0030.02016.55
7.2.300.0000.02116.63
7.2.290.0110.00616.58
7.2.250.0060.00815.05
7.2.240.0070.01115.15
7.2.230.0030.00914.81
7.2.220.0040.00714.88
7.2.210.0030.00914.79
7.2.200.0000.01214.86
7.2.190.0000.01415.02
7.2.180.0030.01015.05
7.2.170.0060.00614.64
7.2.130.0040.01516.89
7.2.120.0100.00716.51
7.2.110.0090.00616.65
7.2.100.0150.00616.54
7.2.90.0140.00816.71
7.2.80.0120.00816.68
7.2.70.0140.00316.82
7.2.60.0100.00616.62
7.2.50.0180.00716.81
7.2.40.0090.00716.75
7.2.30.0150.00416.68
7.2.20.0120.00716.77
7.2.10.0130.00516.80
7.2.00.0170.00416.58
7.1.330.0070.00715.77
7.1.320.0110.00315.70
7.1.310.0070.00715.55
7.1.300.0030.00915.38
7.1.290.0060.00615.38
7.1.280.0060.00615.40
7.1.270.0030.00915.67
7.1.260.0070.01015.50
7.1.250.0070.00715.63
7.1.240.1200.00915.57
7.1.230.0090.00615.58
7.1.220.0230.00615.58
7.1.210.0210.00915.56
7.1.200.0100.00715.38
7.1.190.0150.00615.56
7.1.180.0120.00715.57
7.1.170.0130.00415.62
7.1.160.0130.00515.53
7.1.150.0150.00315.59
7.1.140.0140.00715.42
7.1.130.0170.00515.63
7.1.120.0110.00815.32
7.1.110.0120.00515.53
7.1.100.0170.00415.70
7.1.90.0130.00515.58
7.1.80.0230.00515.58
7.1.70.0120.00816.06
7.1.60.0090.00716.00
7.1.50.0120.00816.03
7.1.40.0130.00315.63
7.1.30.0190.00515.59
7.1.20.0150.00315.37
7.1.10.0090.00515.48
7.1.00.0210.02317.82
7.0.330.0060.00915.34
7.0.320.0240.00215.38
7.0.310.0090.00515.22
7.0.300.0130.00615.24
7.0.290.0140.00515.18
7.0.280.0100.00715.02
7.0.270.0090.00615.05
7.0.260.0060.00714.92
7.0.250.0140.00815.36
7.0.240.0140.00215.37
7.0.230.0390.00015.31
7.0.220.0130.00215.41
7.0.210.0160.00715.03
7.0.200.0110.00515.61
7.0.190.0250.00415.16
7.0.180.0160.00315.24
7.0.170.0070.01014.95
7.0.160.0210.00715.37
7.0.150.0090.00815.01
7.0.140.0100.00615.14
7.0.130.0230.01015.04
7.0.120.0080.00615.40
7.0.110.0170.00315.16
7.0.100.0190.00615.26
7.0.90.0110.00615.01
7.0.80.0140.00515.21
7.0.70.0130.00615.15
7.0.60.0110.02916.84
7.0.50.0140.03116.28
7.0.40.0070.03015.60
7.0.30.0110.01815.62
7.0.20.0230.01615.44
7.0.10.0100.03215.52
7.0.00.0040.01815.63
5.6.380.0110.00314.38
5.6.370.0060.00614.34
5.6.360.0050.00714.23
5.6.350.0080.00614.01
5.6.340.0000.01414.21
5.6.330.0090.00414.12
5.6.320.0070.00514.38
5.6.310.0100.00114.11
5.6.300.0090.00713.99
5.6.290.0090.00514.04
5.6.280.0050.01616.50
5.6.270.0120.00514.00
5.6.260.0050.00814.01
5.6.250.0100.00614.18
5.6.240.0070.00614.18
5.6.230.0060.01114.10
5.6.220.0040.01014.18
5.6.210.0080.02316.33
5.6.200.0070.01915.42
5.6.190.0110.02516.14
5.6.180.1300.01416.20
5.6.170.0130.03116.25
5.6.160.0040.02316.26
5.6.150.0120.02715.66
5.6.140.0060.02215.54
5.6.130.0090.02915.55
5.6.120.0120.02616.54
5.6.110.0090.03116.50
5.6.100.0070.02916.44
5.6.90.0090.03116.46
5.6.80.0050.01816.38
5.6.70.0060.00714.13
5.6.60.0080.00714.03
5.6.50.0080.00514.07
5.6.40.0040.00914.33
5.6.30.0110.00213.88
5.6.20.0060.00614.13
5.6.10.0090.00413.94
5.6.00.0100.00613.83
5.5.380.0080.00311.04
5.5.370.0060.00611.08
5.5.360.0070.00411.00
5.5.350.0970.01414.18
5.5.340.0060.01413.32
5.5.330.0070.01414.16
5.5.320.0150.02814.12
5.5.310.0140.01814.09
5.5.300.0060.02513.40
5.5.290.0070.02513.33
5.5.280.0080.03214.38
5.5.270.0070.02214.28
5.5.260.0070.03014.33
5.5.250.0100.02714.25
5.5.240.0060.02714.13
5.5.230.0090.00411.00
5.5.220.0100.00111.02
5.5.210.0090.00111.00
5.5.200.0050.00611.00
5.5.190.0070.00611.00
5.5.180.0050.00411.00
5.5.170.0090.00212.35
5.5.160.0050.00511.00
5.5.150.0050.00411.00
5.5.140.0070.00411.00
5.5.130.0060.00411.00
5.5.120.0080.00411.00
5.5.110.0040.00911.00
5.5.100.0080.00411.00
5.5.90.0070.00411.04
5.5.80.0080.00211.00
5.5.70.0050.00311.00
5.5.60.0060.00511.00
5.5.50.0070.00411.00
5.5.40.0070.00511.00
5.5.30.0030.00611.00
5.5.20.0040.00711.00
5.5.10.0080.00511.03
5.5.00.0040.00611.00
5.4.450.0240.02313.80
5.4.440.0210.02413.88
5.4.430.0270.03113.76
5.4.420.0300.02513.89
5.4.410.0300.02713.78
5.4.400.0280.02213.69
5.4.390.0270.02013.60
5.4.380.0260.02313.71
5.4.370.0260.02113.77
5.4.360.0260.02413.66
5.4.350.0280.02313.68
5.4.340.0230.01913.76
5.4.330.0090.00211.00
5.4.320.0200.02213.60
5.4.310.0240.01813.70
5.4.300.0180.02213.76
5.4.290.0220.01913.74
5.4.280.0270.01913.60
5.4.270.0220.02213.78
5.4.260.0210.02813.78
5.4.250.0230.02413.76
5.4.240.0210.02513.76
5.4.230.0250.01913.63
5.4.220.0250.02313.65
5.4.210.0220.02113.78
5.4.200.0210.02113.71
5.4.190.0250.02313.69
5.4.180.0240.02113.76
5.4.170.0260.01613.79
5.4.160.0210.02413.71
5.4.150.0270.02713.70
5.4.140.0250.02212.79
5.4.130.0180.02312.87
5.4.120.0260.01812.82
5.4.110.0250.01912.90
5.4.100.0270.01512.89
5.4.90.0230.01812.87
5.4.80.0240.01712.86
5.4.70.0200.02512.87
5.4.60.0190.02212.86
5.4.50.0240.01912.85
5.4.40.0230.02212.87
5.4.30.0220.01812.88
5.4.20.0240.01812.79
5.4.10.0260.01912.87
5.4.00.0240.02312.68

preferences:
48.65 ms | 401 KiB | 5 Q