3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textToEncrypt = "5540"; $encryptionMethod = "aes-128-cbc"; $secretHash = "PYny9tcpR8KMilCybp4V"; $iv = "fgrgfvcfghtfdrfg"; $encryptedMessage = openssl_encrypt($textToEncrypt, $encryptionMethod, $secretHash, 0, $iv); $encryptedMessage = str_replace(' ', '+', $encryptedMessage); $encryptedMessage = str_replace(['/', '=', '+'], ['_', '', '*'], $encryptedMessage); echo 'Token for zone ' . $textToEncrypt . ' is ' . $encryptedMessage;

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.01516.48
8.3.50.0070.01116.12
8.3.40.0090.00618.70
8.3.30.0060.01018.54
8.3.20.0050.00221.63
8.3.10.0040.00423.65
8.3.00.0040.00419.01
8.2.180.0080.00816.50
8.2.170.0110.00722.96
8.2.160.0060.01019.28
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0030.00519.70
8.2.120.0050.00326.35
8.2.110.0090.00020.56
8.2.100.0070.00417.91
8.2.90.0040.00417.78
8.2.80.0000.00819.17
8.2.70.0050.00317.80
8.2.60.0040.00417.91
8.2.50.0000.00818.16
8.2.40.0070.00020.59
8.2.30.0040.00419.46
8.2.20.0000.00718.05
8.2.10.0030.00518.02
8.2.00.0080.00018.05
8.1.280.0130.00325.92
8.1.270.0080.00022.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.47
8.1.230.0040.00822.75
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0050.00317.22
8.1.180.0000.00718.10
8.1.170.0050.00219.04
8.1.160.0040.00418.81
8.1.150.0040.00418.97
8.1.140.0000.00817.70
8.1.130.0040.00420.17
8.1.120.0060.00317.31
8.1.110.0040.00417.34
8.1.100.0060.00317.43
8.1.90.0040.00417.29
8.1.80.0000.00717.36
8.1.70.0030.00517.35
8.1.60.0060.00317.56
8.1.50.0000.01017.55
8.1.40.0000.00817.44
8.1.30.0000.00917.47
8.1.20.0000.00717.58
8.1.10.0040.00417.60
8.1.00.0030.00617.54
8.0.300.0030.00521.91
8.0.290.0090.00016.63
8.0.280.0000.00718.42
8.0.270.0000.00717.10
8.0.260.0000.00716.73
8.0.250.0030.00316.92
8.0.240.0000.00716.97
8.0.230.0030.00616.98
8.0.220.0030.00316.89
8.0.210.0030.00316.82
8.0.200.0030.00316.91
8.0.190.0000.00716.77
8.0.180.0040.00416.94
8.0.170.0030.00616.88
8.0.160.0050.00216.90
8.0.150.0030.00316.71
8.0.140.0080.00016.85
8.0.130.0050.00013.19
8.0.120.0030.00616.85
8.0.110.0000.00716.90
8.0.100.0000.00716.95
8.0.90.0030.00316.92
8.0.80.0160.00016.88
8.0.70.0030.00316.95
8.0.60.0000.00716.86
8.0.50.0070.00016.75
8.0.30.0110.00817.02
8.0.20.0100.00917.40
8.0.10.0040.00416.92
8.0.00.0130.00816.72
7.4.330.0000.00515.55
7.4.320.0030.00316.54
7.4.300.0060.00016.59
7.4.290.0000.00716.59
7.4.280.0080.00016.39
7.4.270.0070.00016.57
7.4.260.0030.00516.48
7.4.250.0000.00716.44
7.4.240.0050.00316.50
7.4.230.0000.00716.66
7.4.220.0040.00416.64
7.4.210.0070.01016.59
7.4.200.0030.00316.47
7.4.160.0100.00716.51
7.4.140.0110.00917.86
7.4.130.0150.00316.29
7.4.120.0090.01016.49
7.4.110.0180.00316.48
7.4.100.0160.00016.51
7.4.90.0120.00616.44
7.4.80.0070.01319.39
7.4.70.0060.01016.41
7.4.60.0060.00916.50
7.4.50.0000.01416.28
7.4.40.0070.01416.54
7.4.10.0110.00714.90
7.4.00.0100.00514.86
7.3.330.0000.00713.01
7.3.320.0030.00313.09
7.3.310.0000.00716.19
7.3.300.0040.00416.16
7.3.290.0000.00716.05
7.3.280.0130.00416.24
7.3.260.0090.00916.28
7.3.240.0120.00616.23
7.3.230.0160.02816.38
7.3.210.0120.00316.49
7.3.200.0060.00916.24
7.3.190.0070.01016.40
7.3.180.0090.01316.36
7.3.170.0080.00816.24
7.3.160.0090.00616.34
7.3.130.0120.00614.76
7.3.120.0130.00314.77
7.3.110.0110.00714.61
7.3.100.0050.00514.43
7.3.90.0000.01814.97
7.3.80.0030.00614.80
7.3.70.0060.00914.63
7.3.60.0040.00414.83
7.3.50.0000.01414.32
7.3.40.0030.00914.82
7.3.30.0000.00814.82
7.3.20.0040.01116.55
7.3.10.0060.00616.27
7.3.00.0030.00616.56
7.2.330.0110.00716.53
7.2.320.0030.01316.57
7.2.310.0040.01216.31
7.2.300.0030.01316.19
7.2.290.0030.01916.41
7.2.260.0060.01214.88
7.2.250.0000.01714.60
7.2.240.0030.01014.93
7.2.230.0000.01514.83
7.2.220.0050.00514.56
7.2.210.0080.00414.48
7.2.200.0040.01114.93
7.2.190.0070.00714.91
7.2.180.0000.00914.82
7.2.170.0060.00814.91
7.2.160.0040.00814.88
7.2.150.0030.00916.55
7.2.140.0060.00916.95
7.2.130.0070.00416.91
7.2.120.0110.00316.54
7.2.110.0000.01416.58
7.2.100.0000.01416.52
7.2.90.0040.01116.94
7.2.80.0090.00616.78
7.2.70.0070.00716.73
7.2.60.0070.00416.50
7.2.50.0030.00916.88
7.2.40.0380.01317.19
7.2.30.0360.01017.30
7.2.20.0460.00617.46
7.2.10.0380.01217.54
7.2.00.0490.01017.45
7.1.330.0030.01015.38
7.1.320.0060.00615.62
7.1.310.0060.00615.72
7.1.300.0070.00315.54
7.1.290.0040.00415.66
7.1.280.0110.00015.70
7.1.270.0040.00415.32
7.1.260.0030.00615.49
7.1.250.0100.00315.68
7.1.240.0000.01515.51
7.1.230.0060.00315.39
7.1.220.0030.01015.73
7.1.210.0080.00415.75
7.1.200.0040.00815.61
7.1.190.0030.00615.53
7.1.180.0060.00915.69
7.1.170.0130.00015.60
7.1.160.0420.00816.14
7.1.150.0440.00816.23
7.1.140.0440.00816.20
7.1.130.0370.01016.22
7.1.120.0420.01116.21
7.1.110.0610.01215.88
7.1.100.0600.01015.79
7.1.90.0700.00715.76
7.1.80.0870.00815.86
7.1.70.0970.00915.54
7.1.60.1110.01024.52
7.1.50.0830.01024.36
7.1.40.1240.00724.10
7.1.30.0970.01024.26
7.1.20.0900.01124.17
7.1.10.0730.00815.22
7.1.00.0670.00815.28
7.0.330.0030.00915.33
7.0.320.0030.00915.18
7.0.310.0090.00615.46
7.0.300.0040.00815.32
7.0.290.0130.00015.21
7.0.280.0070.00715.46
7.0.270.0060.00615.34
7.0.260.0060.01015.29
7.0.250.0050.00315.49
7.0.240.0000.01315.27
7.0.230.0070.00715.47
7.0.220.0030.00615.21
7.0.210.0070.00715.36
7.0.200.0060.00315.48
7.0.190.0090.00315.16
7.0.180.0070.00315.35
7.0.170.0130.00015.43
7.0.160.0130.00015.21
7.0.150.0040.01115.50
7.0.140.0060.01115.25
7.0.130.0000.01015.00
7.0.120.0000.01315.25
7.0.110.0110.00015.06
7.0.100.0130.00015.25
7.0.90.0030.01015.36
7.0.80.0060.01015.44
7.0.70.0080.00815.28
7.0.60.0100.00715.18
7.0.50.0080.00315.53
7.0.40.0100.00713.39
7.0.30.0060.00913.35
7.0.20.0030.00913.03
7.0.10.0100.00313.55
7.0.00.0000.01213.38
5.6.400.0040.00714.31
5.6.390.0060.00314.20
5.6.380.0060.00614.05
5.6.370.0070.00714.06
5.6.360.0090.00314.04
5.6.350.0090.00314.22
5.6.340.0030.00714.08
5.6.330.0000.01214.25
5.6.320.0080.00014.38
5.6.310.0060.00914.13
5.6.300.0070.00714.32
5.6.290.0000.01014.07
5.6.280.0040.01114.11
5.6.270.0070.00713.96
5.6.260.0040.00914.47
5.6.250.0000.01014.15
5.6.240.0070.00414.08
5.6.230.0070.00714.25
5.6.220.0060.00314.32
5.6.210.0070.01014.04
5.6.200.0110.00414.16
5.6.190.0130.00714.38
5.6.180.0160.00313.94
5.6.170.0000.01114.35
5.6.160.0000.00814.13
5.6.150.0080.00414.27
5.6.140.0060.00613.98
5.6.130.0040.00713.97
5.6.120.0090.00314.27
5.6.110.0060.00914.03
5.6.100.0030.00614.20
5.6.90.0070.00413.91
5.6.80.0030.00513.96
5.6.70.0060.00614.16
5.6.60.0060.00914.13
5.6.50.0000.01213.82
5.6.40.0000.01214.19
5.6.30.0030.01014.20
5.6.20.0100.00314.34
5.6.10.0060.00614.30
5.6.00.0070.00414.15

preferences:
63.48 ms | 401 KiB | 5 Q