3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'test'; $key = openssl_random_pseudo_bytes(16); $iv = openssl_random_pseudo_bytes(16); $cipher = mcrypt_encrypt( MCRYPT_RIJNDAEL_128, $key, $message, MCRYPT_MODE_CBC, $iv ); $plain = openssl_decrypt( $cipher, 'aes-128-cbc', $key, OPENSSL_ZERO_PADDING, $iv ); var_dump( $message, bin2hex($cipher), $plain, mb_strlen($message, '8bit'), mb_strlen($plain, '8bit'), $message === $plain );

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.4.20.0160.00318.05
8.4.10.0040.00417.84
8.3.140.0050.00316.68
8.3.130.0060.00318.37
8.3.120.0080.00020.62
8.3.110.0030.00620.94
8.3.100.0060.00318.16
8.3.90.0050.00326.77
8.3.80.0030.00619.36
8.3.70.0110.01118.43
8.3.60.0120.00918.31
8.3.50.0130.00821.20
8.3.40.0080.00818.67
8.3.30.0040.01119.05
8.3.20.0070.00020.26
8.3.10.0080.00021.60
8.3.00.0000.00817.50
8.2.260.0070.00719.18
8.2.250.0170.00018.34
8.2.240.0030.00717.10
8.2.230.0050.00322.58
8.2.220.0000.00824.06
8.2.210.0000.00826.77
8.2.200.0060.00318.88
8.2.190.0090.00618.29
8.2.180.0130.01016.85
8.2.170.0110.00622.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.41
8.2.110.0100.00022.20
8.2.100.0120.00017.72
8.2.90.0000.00817.84
8.2.80.0040.00418.22
8.2.70.0040.00417.63
8.2.60.0070.00317.80
8.2.50.0040.00418.07
8.2.40.0000.00819.82
8.2.30.0080.00017.91
8.2.20.0080.00017.55
8.2.10.0040.00417.94
8.2.00.0060.00318.05
8.1.310.0040.00416.79
8.1.300.0000.01518.49
8.1.290.0030.00730.84
8.1.280.0140.00725.92
8.1.270.0090.00622.14
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0000.00924.00
8.1.230.0070.00720.84
8.1.220.0050.00317.79
8.1.210.0060.00318.95
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00721.98
8.1.170.0050.00320.19
8.1.160.0040.00418.75
8.1.150.0070.00020.61
8.1.140.0000.00717.34
8.1.130.0000.00717.30
8.1.120.0040.00417.30
8.1.110.0050.00217.40
8.1.100.0040.00417.38
8.1.90.0030.00517.38
8.1.80.0030.00617.39
8.1.70.0000.00717.39
8.1.60.0000.00717.46
8.1.50.0040.00417.50
8.1.40.0050.00417.47
8.1.30.0000.00717.64
8.1.20.0040.00417.57
8.1.10.0040.00417.42
8.1.00.0060.00317.50
8.0.300.0000.00819.95
8.0.290.0030.00616.75
8.0.280.0070.00018.38
8.0.270.0070.00016.81
8.0.260.0000.00618.39
8.0.250.0030.00317.01
8.0.240.0000.00716.92
8.0.230.0000.00716.93
8.0.220.0000.00716.81
8.0.210.0030.00316.89
8.0.200.0000.00616.87
8.0.190.0040.00416.93
8.0.180.0000.00816.80
8.0.170.0040.00416.79
8.0.160.0000.00916.78
8.0.150.0070.00016.80
8.0.140.0040.00416.73
8.0.130.0030.00313.30
8.0.120.0040.00416.84
8.0.110.0040.00416.78
8.0.100.0070.00016.77
8.0.90.0000.00716.77
8.0.80.0090.00616.93
8.0.70.0000.00816.84
8.0.60.0000.00816.88
8.0.50.0000.00816.77
8.0.30.0070.01116.87
8.0.20.0100.00817.21
8.0.10.0140.00716.99
8.0.00.0090.01116.81
7.4.330.0000.00515.03
7.4.320.0030.00316.43
7.4.300.0070.00016.44
7.4.290.0000.00716.54
7.4.280.0080.00016.45
7.4.270.0000.00716.58
7.4.260.0040.00416.34
7.4.250.0080.00016.46
7.4.240.0060.00116.60
7.4.230.0000.00716.57
7.4.220.0060.01316.42
7.4.210.0100.01016.55
7.4.200.0080.00016.49
7.4.160.0080.00816.54
7.4.150.0090.00616.94
7.4.140.0090.01117.36
7.4.130.0060.01116.38
7.4.120.0110.00716.52
7.4.110.0070.00916.47
7.4.100.0080.01116.57
7.4.90.0120.00716.44
7.4.80.0100.00917.92
7.4.70.0110.00816.60
7.4.60.0090.00616.40
7.4.50.0060.00916.38
7.4.40.0110.00816.52
7.4.30.0060.01116.59
7.4.20.0150.00016.36
7.4.10.0030.01216.52
7.4.00.0090.00415.80
7.3.330.0050.00013.09
7.3.320.0030.00313.16
7.3.310.0030.00316.22
7.3.300.0030.00316.21
7.3.290.0050.01016.27
7.3.280.0080.01016.27
7.3.270.0070.01116.85
7.3.260.0140.00416.35
7.3.250.0090.00616.20
7.3.240.0090.00816.29
7.3.230.0100.00816.36
7.3.220.0070.01316.22
7.3.210.0110.00916.34
7.3.200.0120.00617.81
7.3.190.0040.01416.24
7.3.180.0070.01116.30
7.3.170.0070.01316.37
7.3.160.0070.01116.40
7.3.150.0100.00916.23
7.3.140.0100.01016.14
7.3.130.0000.01416.27
7.3.120.0060.00716.64
7.3.110.0040.01116.62
7.3.100.0030.01216.63
7.3.90.0060.00816.11
7.3.80.0060.00716.10
7.3.70.0040.01016.03
7.3.60.0060.00916.09
7.3.50.0060.00816.08
7.3.40.0060.00716.02
7.3.30.0060.01016.10
7.3.20.0090.00716.07
7.3.10.0050.01216.03
7.3.00.0220.00916.04
7.2.340.0150.01116.19
7.2.330.0120.01016.39
7.2.320.0090.01316.36
7.2.310.0130.00916.24
7.2.300.0140.01016.23
7.2.290.0180.00916.38
7.2.280.0100.01716.17
7.2.270.0200.00716.21
7.2.260.0040.02116.19
7.2.250.0140.01116.18
7.2.240.0190.00716.65
7.2.230.0100.01216.69
7.2.220.0110.00816.08
7.2.210.0090.01116.11
7.2.200.0070.01316.19
7.2.190.0120.01016.13
7.2.180.0090.00916.16
7.2.170.0100.00916.12
7.2.160.0160.00616.12
7.2.150.0110.00916.21
7.2.140.0110.00916.10
7.2.130.0120.00916.27
7.2.120.0120.00816.24
7.2.110.0110.01016.21
7.2.100.0110.00716.21
7.2.90.0150.00716.16
7.2.80.0130.00616.17
7.2.70.0100.00816.14
7.2.60.0100.01116.20
7.2.50.0110.01116.21
7.2.40.0110.00916.22
7.2.30.0130.00816.13
7.2.20.0140.00916.20
7.2.10.0100.01216.20
7.2.00.0110.00917.04
7.1.330.0110.01016.28
7.1.320.0090.00915.42
7.1.310.0150.00515.35
7.1.300.0100.01015.42
7.1.290.0120.00615.43
7.1.280.0110.00715.43
7.1.270.0100.00815.48
7.1.260.0130.00715.37
7.1.250.0090.00815.42
7.1.240.0170.00814.49
7.1.230.0100.01214.53
7.1.220.0080.01314.56
7.1.210.0200.00714.48
7.1.200.0130.01214.62
7.1.190.0150.00814.60
7.1.180.0130.01314.57
7.1.170.0830.00714.53
7.1.160.0180.01114.51
7.1.150.0170.01014.53
7.1.140.0250.00414.56
7.1.130.0130.01214.59
7.1.120.0200.00814.57
7.1.110.0180.00714.52
7.1.100.0120.01614.55
7.1.90.0150.01214.46
7.1.80.0620.00914.61
7.1.70.0120.01115.35
7.1.60.0130.01015.53
7.1.50.0290.00715.32
7.1.40.0140.00915.23
7.1.30.0140.00915.19
7.1.20.0160.01015.36
7.1.10.0160.00615.05
7.1.00.0100.00915.26
7.0.330.0200.00414.26
7.0.320.0130.00714.25
7.0.310.0150.01314.33
7.0.300.0120.01414.32
7.0.290.0120.01314.24
7.0.280.0180.00614.14
7.0.270.0190.00714.29
7.0.260.0150.01314.13
7.0.250.0150.00914.32
7.0.240.0120.01414.31
7.0.230.0140.01314.50
7.0.220.0190.00614.15
7.0.210.0170.00814.26
7.0.200.0140.01115.19
7.0.190.0180.00515.00
7.0.180.0110.01114.89
7.0.170.0140.00914.99
7.0.160.0160.00715.02
7.0.150.0150.00614.89
7.0.140.0100.01114.82
7.0.130.0110.01015.09
7.0.120.0130.01115.04
7.0.110.0150.00814.96
7.0.100.0150.01414.86
7.0.90.0110.00914.97
7.0.80.0110.00814.88
7.0.70.0060.01214.91
7.0.60.0160.00514.80
7.0.50.0140.01014.90
7.0.40.0160.00914.75
7.0.30.0110.00914.74
7.0.20.0560.01114.75
7.0.10.0140.00814.78
7.0.00.0180.00214.68
5.6.400.0100.01514.95
5.6.390.0170.01015.04
5.6.380.0180.00815.05
5.6.370.0160.01014.76
5.6.360.0140.01014.91
5.6.350.0190.00614.88
5.6.340.0140.02315.04
5.6.330.0140.00914.92
5.6.320.0160.01015.04
5.6.310.0200.00714.85
5.6.300.0110.03416.91
5.6.290.0130.03016.93
5.6.280.0150.02216.94
5.6.270.0160.01916.86
5.6.260.0160.01716.98
5.6.250.0140.01616.92
5.6.240.0160.01916.81
5.6.230.0130.02516.96
5.6.220.0250.02516.86
5.6.210.0170.02216.93
5.6.200.0120.02116.96
5.6.190.0090.02317.01
5.6.180.0120.02416.93
5.6.170.0090.02516.88
5.6.160.0210.02016.84
5.6.150.0150.02317.04
5.6.140.0140.02016.99
5.6.130.0140.03016.97
5.6.120.0140.02116.90
5.6.110.0130.02116.86
5.6.100.0170.01716.87
5.6.90.0120.02016.83
5.6.80.0110.01916.66
5.6.70.0100.02216.71
5.6.60.0140.01916.66
5.6.50.0130.02116.72
5.6.40.0130.02216.79
5.6.30.0170.01916.75
5.6.20.0100.02916.57
5.6.10.0130.02616.60
5.6.00.0090.03216.65
5.5.380.0150.02415.86
5.5.370.0100.02315.74
5.5.360.0210.02715.76
5.5.350.0130.01815.65
5.5.340.0150.01716.04
5.5.330.0130.02015.90
5.5.320.0100.02315.83
5.5.310.0120.02215.82
5.5.300.0140.02015.86
5.5.290.0100.02215.97
5.5.280.0120.02615.99
5.5.270.0130.02115.85
5.5.260.0180.01915.72
5.5.250.0120.02015.88
5.5.240.0110.01915.73
5.5.230.0080.02315.74
5.5.220.0120.01915.76
5.5.210.0140.01615.68
5.5.200.0120.01915.59
5.5.190.0140.01815.72
5.5.180.0120.01715.62
5.5.170.0200.00314.64
5.5.160.0160.02015.69
5.5.150.0090.03615.49
5.5.140.0120.03015.52
5.5.130.0100.02115.68
5.5.120.0100.02215.62
5.5.110.0130.01915.54
5.5.100.0090.02415.67
5.5.90.0110.01715.60
5.5.80.0120.01815.65
5.5.70.0140.01815.57
5.5.60.0090.01915.58
5.5.50.0130.03215.61
5.5.40.0100.02115.57
5.5.30.0140.02915.59
5.5.20.0120.02115.61
5.5.10.0120.01915.63
5.5.00.0130.02015.62
5.4.450.0070.02214.84
5.4.440.0090.02914.84
5.4.430.0100.01814.70
5.4.420.0140.02014.78
5.4.410.0120.01714.66
5.4.400.0030.02214.71
5.4.390.0110.01814.66
5.4.380.0110.01814.64
5.4.370.0070.02914.64
5.4.360.0120.01714.63
5.4.350.0070.02314.66
5.4.340.0100.01714.63
5.4.330.0150.00312.43
5.4.320.0120.01814.73
5.4.310.0100.01714.74
5.4.300.0090.01714.76
5.4.290.0130.01314.66
5.4.280.0070.01914.75
5.4.270.0050.01914.71
5.4.260.0130.01714.66
5.4.250.0100.02114.71
5.4.240.0100.02014.71
5.4.230.0090.01914.68
5.4.220.0120.01814.64
5.4.210.0100.01814.66
5.4.200.0100.02114.68
5.4.190.0120.02114.56
5.4.180.0080.02114.63
5.4.170.0080.01814.67
5.4.160.0110.01614.68
5.4.150.0060.03014.58
5.4.140.0040.02013.79
5.4.130.0110.02013.79
5.4.120.0070.01813.71
5.4.110.0080.01813.74
5.4.100.0090.01513.86
5.4.90.0100.02513.73
5.4.80.0090.02913.86
5.4.70.0100.01813.75
5.4.60.0120.01413.87
5.4.50.0100.02013.78
5.4.40.0100.02713.78
5.4.30.0110.01513.81
5.4.20.0080.01813.78
5.4.10.0110.01713.78
5.4.00.0110.02113.60
5.3.290.0080.01312.90
5.3.280.0210.00612.74
5.3.270.0090.01713.05
5.3.260.0220.00412.90
5.3.250.0160.00712.91
5.3.240.0130.00912.64
5.3.230.0090.00912.73
5.3.220.0170.00912.83
5.3.210.0100.01012.90
5.3.200.0050.01612.85
5.3.190.0050.01812.86
5.3.180.0180.00812.94
5.3.170.0110.01412.92
5.3.160.0070.01112.89
5.3.150.0070.01512.92
5.3.140.0230.00013.01
5.3.130.0100.01112.88
5.3.120.0110.01512.91
5.3.110.0200.00612.96
5.3.100.0130.00613.02
5.3.90.0110.01113.07
5.3.80.0140.00712.76
5.3.70.0130.00912.79
5.3.60.0090.00912.85
5.3.50.0160.00312.80
5.3.40.0140.01012.77
5.3.30.0130.00712.83
5.3.20.0120.01312.85
5.3.10.0180.00612.61
5.3.00.0160.00812.63
5.2.170.0050.01411.96
5.2.160.0110.00911.94
5.2.150.0110.00511.98
5.2.140.0100.00812.00
5.2.130.0140.00511.89
5.2.120.0100.00511.92
5.2.110.0120.00511.89
5.2.100.0240.00711.88
5.2.90.0100.00711.77
5.2.80.0150.00611.67
5.2.70.0060.01011.71
5.2.60.0040.01111.77
5.2.50.0120.00311.75
5.2.40.0140.00311.97
5.2.30.0070.00711.80
5.2.20.0060.00911.77
5.2.10.0120.00811.55
5.2.00.0070.01311.39
5.1.60.0150.00311.24
5.1.50.0080.00811.24
5.1.40.0140.00411.25
5.1.30.0150.00311.24
5.1.20.0150.00311.24
5.1.10.0130.00311.24
5.1.00.0070.01011.24
5.0.50.0060.00611.24
5.0.40.0080.00511.24
5.0.30.0080.00411.24
5.0.20.0200.00911.24
5.0.10.0080.00311.24
5.0.00.0110.00011.24
4.4.90.0100.00011.24
4.4.80.0050.00211.24
4.4.70.0100.00011.24
4.4.60.0070.00011.24
4.4.50.0000.00611.24
4.4.40.0080.00311.24
4.4.30.0050.00511.24
4.4.20.0100.00011.24
4.4.10.0050.00511.24
4.4.00.0030.00511.24
4.3.110.0020.00511.24
4.3.100.0000.00711.24
4.3.90.0060.00311.24
4.3.80.0000.00711.24
4.3.70.0060.00311.24
4.3.60.0060.00311.24
4.3.50.0050.00511.24
4.3.40.0000.00811.24
4.3.30.0060.00311.24
4.3.20.0040.00411.24
4.3.10.0080.00011.24
4.3.00.0080.00011.24

preferences:
39.33 ms | 403 KiB | 5 Q