3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "SmackFactory"; $encrypted = encryptIt( $input ); $decrypted = decryptIt( $encrypted ); echo $encrypted . '<br />' . $decrypted; function encryptIt( $q ) { $cryptKey = 'qJB0rGtIn5UB1xG03efyCp'; $qEncoded = base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, md5( $cryptKey ), $q, MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ) ); return( $qEncoded ); } function decryptIt( $q ) { $cryptKey = 'qJB0rGtIn5UB1xG03efyCp'; $qDecoded = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, md5( $cryptKey ), base64_decode( $q ), MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ), "\0"); return( $qDecoded ); } ?>

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.0130.00316.63
8.3.50.0150.00319.92
8.3.40.0120.00618.96
8.3.30.0030.01019.01
8.3.20.0050.00320.20
8.3.10.0080.00023.66
8.3.00.0040.00419.38
8.2.180.0090.00925.92
8.2.170.0110.00318.95
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00721.00
8.2.110.0090.00919.30
8.2.100.0040.00817.85
8.2.90.0080.00017.63
8.2.80.0000.00918.83
8.2.70.0000.00817.80
8.2.60.0140.00517.69
8.2.50.0050.00318.10
8.2.40.0070.00019.30
8.2.30.0070.00019.25
8.2.20.0040.00417.60
8.2.10.0070.00018.01
8.2.00.0000.00717.63
8.1.270.0000.00724.66
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00322.09
8.1.230.0040.00719.02
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0090.00018.10
8.1.170.0000.00918.50
8.1.160.0040.00420.48
8.1.150.0070.00018.88
8.1.140.0000.00717.39
8.1.130.0070.00017.82
8.1.120.0000.00717.38
8.1.110.0040.00417.39
8.1.100.0040.00417.45
8.1.90.0040.00417.29
8.1.80.0040.00317.41
8.1.70.0030.00317.27
8.1.60.0000.00817.60
8.1.50.0040.00417.53
8.1.40.0060.00317.58
8.1.30.0040.00417.48
8.1.20.0040.00417.68
8.1.10.0000.00717.55
8.1.00.0000.00717.53
8.0.300.0080.00018.77
8.0.290.0050.00216.63
8.0.280.0030.00318.31
8.0.270.0030.00317.16
8.0.260.0000.00817.15
8.0.250.0020.00516.96
8.0.240.0000.00716.95
8.0.230.0030.00316.85
8.0.220.0030.00316.77
8.0.210.0000.00716.89
8.0.200.0030.00316.98
8.0.190.0040.00416.95
8.0.180.0060.00316.95
8.0.170.0080.00016.80
8.0.160.0000.00716.80
8.0.150.0000.00716.90
8.0.140.0080.00016.82
8.0.130.0050.00313.29
8.0.120.0040.00416.74
8.0.110.0000.00716.77
8.0.100.0000.00716.70
8.0.90.0000.00816.85
8.0.80.0030.01216.91
8.0.70.0040.00416.95
8.0.60.0050.00216.96
8.0.50.0040.00416.75
8.0.30.0140.00816.92
8.0.20.0140.00717.40
8.0.10.0000.00817.03
8.0.00.0100.01316.81
7.4.330.0020.00215.00
7.4.320.0000.00616.40
7.4.300.0070.00016.49
7.4.290.0030.00616.43
7.4.280.0040.00416.46
7.4.270.0030.00316.57
7.4.260.0000.00716.50
7.4.250.0000.00816.45
7.4.240.0000.00716.65
7.4.230.0070.00016.59
7.4.220.0150.00316.53
7.4.210.0080.00916.55
7.4.200.0070.00016.50
7.4.160.0140.00716.55
7.4.150.0160.00317.40
7.4.140.0080.01317.86
7.4.130.0110.00816.55
7.4.120.0120.00516.58
7.4.110.0030.01316.52
7.4.100.0090.00616.54
7.4.90.0040.01216.41
7.4.80.0030.01619.39
7.4.70.0100.00616.49
7.4.60.0110.00616.59
7.4.50.0000.00716.54
7.4.40.0100.00716.53
7.4.30.0100.00716.48
7.4.00.0100.00714.87
7.3.330.0000.00613.11
7.3.320.0000.00613.18
7.3.310.0020.00516.14
7.3.300.0030.00316.29
7.3.290.0090.00616.29
7.3.280.0060.00916.32
7.3.270.0070.01017.40
7.3.260.0130.00616.48
7.3.250.0090.01116.23
7.3.240.0090.00616.30
7.3.230.0100.01016.61
7.3.210.0030.01316.30
7.3.200.0070.01119.39
7.3.190.0030.01416.40
7.3.180.0080.00816.36
7.3.170.0130.00516.27
7.3.160.0060.00916.30
7.3.10.0040.00916.56
7.3.00.0090.00516.58
7.2.330.0040.01816.52
7.2.320.0130.01016.51
7.2.310.0070.01016.55
7.2.300.0070.01516.37
7.2.290.0070.01016.42
7.2.130.0080.00716.65
7.2.120.0100.00216.76
7.2.110.0090.00516.71
7.2.100.0040.00916.71
7.2.90.0070.00716.81
7.2.80.0050.00816.78
7.2.70.0060.00716.63
7.2.60.0050.00916.71
7.2.50.0040.00816.77
7.2.40.0050.01116.66
7.2.30.0050.00616.82
7.2.20.0090.00716.76
7.2.10.0070.00816.63
7.2.00.0060.00717.47
7.1.250.0060.00615.70
7.1.200.0000.01215.72
7.1.100.0070.00718.21
7.1.70.0060.00316.84
7.1.60.0100.01419.40
7.1.50.0130.01316.98
7.1.00.0070.07322.43
7.0.200.0070.00716.46
7.0.140.0030.07022.10
7.0.60.0030.08719.95
7.0.50.0000.04717.98
7.0.40.0030.08320.16
7.0.30.0600.06720.25
7.0.20.0200.05320.40
7.0.10.0100.08320.12
7.0.00.0070.04020.30
5.6.280.0000.07721.14
5.6.210.0030.07020.61
5.6.200.0070.08018.25
5.6.190.0070.07020.50
5.6.180.0300.08020.82
5.6.170.0200.03720.56
5.6.160.0070.06320.55
5.6.150.0170.03718.20
5.6.140.0030.06318.18
5.6.130.0000.09018.21
5.6.120.0030.04321.08
5.6.110.0170.07021.22
5.6.100.0100.06721.14
5.6.90.0070.04321.10
5.6.80.0070.06020.42
5.5.350.0070.04020.39
5.5.340.0030.05318.16
5.5.330.0100.05020.47
5.5.320.3100.04320.32
5.5.310.0430.06720.34
5.5.300.0130.07318.11
5.5.290.0030.04718.02
5.5.280.0030.04020.74
5.5.270.0030.04721.07
5.5.260.0130.07320.96
5.5.250.0030.04020.68
5.5.240.3730.04020.32
5.4.450.0370.06019.38
5.4.440.0500.06019.61
5.4.430.0670.06319.74
5.4.420.0070.06319.51
5.4.410.0200.07319.47
5.4.400.0270.05318.81
5.4.390.0300.05318.62
5.4.380.0270.06018.87
5.4.370.0430.04018.54
5.4.360.0370.06018.63
5.4.350.0080.05812.02
5.4.340.0060.03912.02
5.4.320.0060.03512.51
5.4.310.0080.03512.51
5.4.300.0070.03912.51
5.4.290.0070.03712.51
5.4.280.0050.03512.41
5.4.270.0060.03512.41
5.4.260.0080.03512.41
5.4.250.0070.03512.40
5.4.240.0060.03512.40
5.4.230.0060.03812.40
5.4.220.0060.03612.40
5.4.210.0040.03712.40
5.4.200.0070.03512.39
5.4.190.0060.03812.39
5.4.180.0070.03412.39
5.4.170.0080.03512.40
5.4.160.0030.04112.39
5.4.150.0060.03512.39
5.4.140.0070.03512.07
5.4.130.0080.03312.06
5.4.120.0040.03712.02
5.4.110.0080.03212.02
5.4.100.0070.03612.02
5.4.90.0060.03512.02
5.4.80.0050.03612.02
5.4.70.0060.03312.01
5.4.60.0050.03512.02
5.4.50.0070.03312.02
5.4.40.0070.03212.00
5.4.30.0060.03412.00
5.4.20.0060.03512.00
5.4.10.0070.03211.99
5.4.00.0060.03411.48
5.3.290.0040.04012.80
5.3.280.0040.03812.71
5.3.270.0070.03712.72
5.3.260.0040.04012.72
5.3.250.0090.03212.72
5.3.240.0050.03712.71
5.3.230.0030.03912.70
5.3.220.0040.03912.68
5.3.210.0040.03912.68
5.3.200.0060.03612.68
5.3.190.0050.03712.68
5.3.180.0040.03712.68
5.3.170.0060.04112.67
5.3.160.0070.04412.67
5.3.150.0070.03612.67
5.3.140.0060.03412.66
5.3.130.0050.03812.66
5.3.120.0080.04012.66
5.3.110.0060.03912.66
5.3.100.0040.04012.13
5.3.90.0050.03712.11
5.3.80.0050.03612.10
5.3.70.0080.03312.10
5.3.60.0050.04412.09
5.3.50.0030.03812.04
5.3.40.0050.03612.04
5.3.30.0030.03611.99
5.3.20.0050.03511.78
5.3.10.0090.03011.74
5.3.00.0050.03511.73
5.2.170.0060.0289.23
5.2.160.0070.0259.23
5.2.150.0060.0329.23
5.2.140.0070.0359.23
5.2.130.0020.0329.18
5.2.120.0040.0299.19
5.2.110.0020.0329.19
5.2.100.0040.0299.18
5.2.90.0060.0279.19
5.2.80.0080.0329.18
5.2.70.0020.0319.18
5.2.60.0040.0299.14
5.2.50.0050.0319.11
5.2.40.0040.0299.08
5.2.30.0050.0299.06
5.2.20.0050.0279.05
5.2.10.0020.0318.95
5.2.00.0050.0288.82
5.1.60.0050.0298.10
5.1.50.0060.0308.10
5.1.40.0020.0258.07
5.1.30.0050.0328.43
5.1.20.0030.0278.45
5.1.10.0050.0328.18
5.1.00.0040.0308.17
5.0.50.0060.0226.65
5.0.40.0020.0216.52
5.0.30.0030.0366.32
5.0.20.0040.0176.29
5.0.10.0010.0216.27
5.0.00.0040.0316.27
4.4.90.0020.0174.78
4.4.80.0050.0134.76
4.4.70.0030.0184.75
4.4.60.0010.0174.75
4.4.50.0010.0164.77
4.4.40.0000.0344.71
4.4.30.0030.0214.76
4.4.20.0030.0154.84
4.4.10.0060.0184.85
4.4.00.0050.0284.76
4.3.110.0050.0174.67
4.3.100.0010.0164.67
4.3.90.0020.0144.63
4.3.80.0030.0234.58
4.3.70.0030.0144.63
4.3.60.0010.0154.63
4.3.50.0020.0164.63
4.3.40.0010.0254.54
4.3.30.0010.0173.31
4.3.20.0020.0163.29
4.3.10.0010.0233.25
4.3.00.0100.02310.99

preferences:
62.92 ms | 400 KiB | 5 Q