3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'It works ? Or not it works ?'; $pass = '1234'; $method = 'aes128'; $iv = "1234567812345678"; echo openssl_encrypt ($string, $method, $pass,true, $iv); ?>

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.70.0140.00716.38
8.3.60.0140.00418.68
8.3.50.0090.00921.90
8.3.40.0070.01118.79
8.3.30.0140.00018.75
8.3.20.0040.00420.22
8.3.10.0080.00020.48
8.3.00.0000.00723.48
8.2.190.0130.00316.58
8.2.180.0150.00716.88
8.2.170.0110.00722.96
8.2.160.0160.00022.26
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00421.03
8.2.120.0040.00426.35
8.2.110.0060.00321.96
8.2.100.0090.00317.93
8.2.90.0000.00819.05
8.2.80.0030.00517.97
8.2.70.0030.00617.61
8.2.60.0040.00417.78
8.2.50.0000.00818.09
8.2.40.0000.00820.44
8.2.30.0000.00719.34
8.2.20.0000.00717.79
8.2.10.0070.00018.10
8.2.00.0050.00218.07
8.1.280.0110.01125.92
8.1.270.0090.00622.00
8.1.260.0060.00328.09
8.1.250.0000.00828.09
8.1.240.0060.00320.80
8.1.230.0060.00617.83
8.1.220.0080.00017.78
8.1.210.0030.00518.77
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.01118.58
8.1.160.0070.00020.70
8.1.150.0000.00718.86
8.1.140.0000.00819.41
8.1.130.0000.00717.63
8.1.120.0030.00517.36
8.1.110.0030.00517.24
8.1.100.0000.00817.29
8.1.90.0040.00417.28
8.1.80.0070.00317.38
8.1.70.0000.00717.41
8.1.60.0050.00317.52
8.1.50.0000.00817.41
8.1.40.0000.00817.47
8.1.30.0080.00017.57
8.1.20.0040.00417.36
8.1.10.0040.00417.57
8.1.00.0000.00817.50
8.0.300.0060.00318.77
8.0.290.0060.00316.75
8.0.280.0030.00318.28
8.0.270.0000.00717.24
8.0.260.0030.00317.04
8.0.250.0030.00516.95
8.0.240.0030.00516.92
8.0.230.0030.00316.87
8.0.220.0040.00416.86
8.0.210.0080.00016.88
8.0.200.0000.00716.96
8.0.190.0000.00916.98
8.0.180.0000.00716.78
8.0.170.0080.00016.90
8.0.160.0000.00816.90
8.0.150.0040.00416.77
8.0.140.0050.00316.80
8.0.130.0000.00513.29
8.0.120.0000.00716.74
8.0.110.0040.00416.84
8.0.100.0000.00816.75
8.0.90.0030.00416.82
8.0.80.0070.01416.84
8.0.70.0000.00716.65
8.0.60.0040.00416.91
8.0.50.0000.00716.87
8.0.30.0100.00917.04
8.0.20.0180.01017.40
8.0.10.0040.00416.89
8.0.00.0110.00616.73
7.4.330.0000.00516.83
7.4.320.0040.00416.50
7.4.300.0030.00316.48
7.4.290.0030.00716.59
7.4.280.0000.00716.54
7.4.270.0070.00316.63
7.4.260.0080.00016.47
7.4.250.0040.00416.37
7.4.240.0000.00716.60
7.4.230.0070.00016.24
7.4.220.0060.01316.45
7.4.210.0110.00416.51
7.4.200.0040.00416.67
7.4.160.0080.00816.60
7.4.150.0070.01317.40
7.4.140.0090.01017.86
7.4.130.0100.00716.46
7.4.120.0030.01716.41
7.4.110.0080.00816.40
7.4.100.0130.00616.46
7.4.90.0080.01116.39
7.4.80.0080.00819.39
7.4.70.0040.01316.43
7.4.60.0100.00716.57
7.4.50.0130.00316.62
7.4.40.0100.00716.49
7.4.30.0080.00816.54
7.4.00.0070.01015.06
7.3.330.0000.00513.18
7.3.320.0000.00513.23
7.3.310.0040.00416.34
7.3.300.0000.00716.22
7.3.290.0000.00716.11
7.3.280.0070.01016.25
7.3.270.0070.01017.40
7.3.260.0060.01016.64
7.3.250.0070.01216.38
7.3.240.0110.00816.30
7.3.230.0070.01116.39
7.3.210.0030.01216.30
7.3.200.0110.00616.48
7.3.190.0030.01316.29
7.3.180.0080.00816.21
7.3.170.0100.01016.28
7.3.160.0060.00916.20
7.3.120.0080.00614.57
7.3.110.0060.01014.75
7.3.100.0030.01414.77
7.3.90.0130.00314.57
7.3.80.0080.00414.79
7.3.70.0100.00314.62
7.3.60.0060.00614.85
7.3.50.0030.01014.55
7.3.40.0030.01314.75
7.3.30.0040.01214.77
7.3.20.0030.00916.62
7.3.10.0080.00816.54
7.3.00.0020.01116.57
7.2.330.0030.02016.46
7.2.320.0130.00916.33
7.2.310.0070.01016.32
7.2.300.0000.01816.36
7.2.290.0090.00616.58
7.2.250.0090.01215.14
7.2.240.0100.01015.14
7.2.230.0080.00614.88
7.2.220.0110.00315.13
7.2.210.0030.01014.90
7.2.200.0030.01214.87
7.2.190.0100.00314.85
7.2.180.0030.01014.69
7.2.170.0030.01614.93
7.2.130.0100.00316.77
7.2.120.0030.00916.62
7.2.110.0090.00616.70
7.2.100.0030.00816.46
7.2.90.0070.00716.88
7.2.80.0000.01416.59
7.2.70.0090.00316.68
7.2.60.0030.00616.84
7.2.50.0000.01216.81
7.2.40.0040.00416.69
7.2.30.0030.00916.76
7.2.20.0030.01116.77
7.2.10.0040.01216.66
7.2.00.0040.01018.11
7.1.330.0030.00915.57
7.1.320.0030.01015.57
7.1.310.0030.00815.92
7.1.300.0080.00615.61
7.1.290.0090.00315.54
7.1.280.0030.01015.59
7.1.270.0110.00715.36
7.1.260.0030.00615.48
7.1.250.0070.00715.68
7.1.240.0110.00415.43
7.1.230.0030.01015.64
7.1.220.0090.00315.32
7.1.210.0000.01415.42
7.1.200.0120.00115.40
7.1.190.0100.00315.68
7.1.180.0060.00615.50
7.1.170.0040.00715.44
7.1.160.0030.00915.44
7.1.150.0030.01015.48
7.1.140.0070.01015.61
7.1.130.0070.00315.27
7.1.120.0070.00715.64
7.1.110.0150.00015.75
7.1.100.0000.01116.76
7.1.90.0070.00715.75
7.1.80.0000.00915.74
7.1.70.0080.00216.24
7.1.60.0040.01217.50
7.1.50.0110.01225.02
7.1.40.0040.00815.80
7.1.30.0040.00915.42
7.1.20.0030.01015.60
7.1.10.0110.00015.27
7.1.00.0050.04318.97
7.0.330.0100.00415.37
7.0.320.0060.00315.43
7.0.310.0040.00415.05
7.0.300.0000.00915.36
7.0.290.0060.00615.35
7.0.280.0080.00815.28
7.0.270.0080.00415.34
7.0.260.0030.00714.96
7.0.250.0060.00615.46
7.0.240.0000.01015.50
7.0.230.0090.00315.28
7.0.220.0040.00415.42
7.0.210.0080.00315.17
7.0.200.0190.00814.91
7.0.190.0030.01015.52
7.0.180.0030.00615.46
7.0.170.0030.00715.11
7.0.160.0070.00415.43
7.0.150.0060.00315.16
7.0.140.0060.00615.11
7.0.130.0030.00915.40
7.0.120.0060.00615.39
7.0.110.0070.00715.36
7.0.100.0030.01015.17
7.0.90.0100.00315.27
7.0.80.0100.00315.21
7.0.70.0050.00515.34
7.0.60.0100.02317.60
7.0.50.0030.02616.69
7.0.40.0070.03716.71
7.0.30.0200.02616.81
7.0.20.0190.04216.67
7.0.10.0070.04016.64
7.0.00.0030.04516.82
5.6.380.0070.00713.84
5.6.370.0030.01014.18
5.6.360.0040.00814.29
5.6.350.0030.00714.07
5.6.340.0030.00913.88
5.6.330.0040.01114.27
5.6.320.0090.00314.13
5.6.310.0060.00614.47
5.6.300.0000.01113.98
5.6.290.0000.01014.49
5.6.280.0050.03517.47
5.6.270.0040.01114.13
5.6.260.0000.01214.34
5.6.250.0030.00614.04
5.6.240.0060.00614.24
5.6.230.0070.00414.01
5.6.220.0050.00514.24
5.6.210.0020.03717.39
5.6.200.0030.03516.14
5.6.190.0060.02217.39
5.6.180.0130.02517.61
5.6.170.0250.03517.32
5.6.160.0080.02917.44
5.6.150.0020.02616.12
5.6.140.0070.04316.29
5.6.130.0020.02715.95
5.6.120.0070.04417.70
5.6.110.0050.03517.54
5.6.100.0120.04017.47
5.6.90.0130.04117.61
5.6.80.0040.03917.34
5.6.70.0070.00714.12
5.6.60.0070.00713.95
5.6.50.0070.00714.14
5.6.40.0080.00014.10
5.6.30.0070.00714.16
5.6.20.0070.00314.14
5.6.10.0030.01013.93
5.6.00.0070.00714.13
5.5.380.0000.00810.90
5.5.370.0000.00810.90
5.5.360.0000.00710.90
5.5.350.0240.03515.60
5.5.340.0090.04214.51
5.5.330.0070.04215.63
5.5.320.0210.02115.61
5.5.310.0170.02715.60
5.5.300.0030.02314.45
5.5.290.0060.04514.41
5.5.280.0060.04015.93
5.5.270.0090.02815.89
5.5.260.0110.02315.76
5.5.250.0050.04015.72
5.5.240.0060.04115.57
5.5.230.0080.00010.96
5.5.220.0040.00410.90
5.5.210.0000.01210.90
5.5.200.0070.00010.90
5.5.190.0000.00610.90
5.5.180.0080.00310.90
5.5.170.0000.00510.90
5.5.160.0000.01010.90
5.5.150.0000.01110.90
5.5.140.0030.00710.90
5.5.130.0000.01210.90
5.5.120.0000.00710.90
5.5.110.0000.01210.90
5.5.100.0000.01110.90
5.5.90.0000.00610.90
5.5.80.0000.01010.90
5.5.70.0040.00410.90
5.5.60.0000.00810.90
5.5.50.0030.00710.90
5.5.40.0060.00310.90
5.5.30.0030.00510.90
5.5.20.0030.00710.90
5.5.10.0100.00010.90
5.5.00.0080.00010.90

preferences:
62.51 ms | 401 KiB | 5 Q