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_RAW_DATA, $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.3.60.0140.00718.07
8.3.50.0070.01016.18
8.3.40.0100.00718.84
8.3.30.0090.00618.96
8.3.20.0040.00420.07
8.3.10.0040.00421.76
8.3.00.0080.00017.50
8.2.180.0080.01325.92
8.2.170.0070.00719.14
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00319.64
8.2.110.0070.00322.11
8.2.100.0130.00017.78
8.2.90.0030.00522.18
8.2.80.0000.00817.97
8.2.70.0030.00617.67
8.2.60.0040.00418.00
8.2.50.0030.00617.55
8.2.40.0080.00019.23
8.2.30.0000.00817.97
8.2.20.0000.00717.59
8.2.10.0070.00317.89
8.2.00.0000.00717.90
8.1.280.0090.00625.92
8.1.270.0040.01124.66
8.1.260.0100.00026.35
8.1.250.0080.00028.09
8.1.240.0130.00023.55
8.1.230.0070.00418.95
8.1.220.0070.00417.75
8.1.210.0080.00018.77
8.1.200.0050.00317.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0040.00419.00
8.1.150.0070.00020.57
8.1.140.0040.00417.38
8.1.130.0040.00417.29
8.1.120.0000.00717.42
8.1.110.0000.00817.29
8.1.100.0050.00317.38
8.1.90.0000.00717.42
8.1.80.0040.00417.27
8.1.70.0000.00817.30
8.1.60.0070.00017.41
8.1.50.0000.00817.39
8.1.40.0040.00417.50
8.1.30.0080.00017.65
8.1.20.0050.00317.58
8.1.10.0080.00017.52
8.1.00.0050.00317.51
8.0.300.0070.00019.91
8.0.290.0040.00416.63
8.0.280.0000.00718.29
8.0.270.0000.00716.73
8.0.260.0000.00716.84
8.0.250.0050.00316.82
8.0.240.0030.00316.92
8.0.230.0050.00216.92
8.0.220.0050.00316.91
8.0.210.0080.00016.84
8.0.200.0030.00316.93
8.0.190.0030.00316.92
8.0.180.0060.00316.79
8.0.170.0000.00716.93
8.0.160.0040.00416.81
8.0.150.0040.00416.89
8.0.140.0030.00316.82
8.0.130.0040.00413.29
8.0.120.0000.00816.83
8.0.110.0040.00416.85
8.0.100.0070.00016.73
8.0.90.0030.00616.84
8.0.80.0040.01116.88
8.0.70.0000.00816.83
8.0.60.0040.00416.83
8.0.50.0000.00816.77
8.0.30.0110.00917.15
8.0.20.0080.01017.40
8.0.10.0000.00717.12
8.0.00.0060.01316.75
7.4.330.0050.00015.03
7.4.320.0000.00716.34
7.4.300.0060.00016.44
7.4.290.0000.00716.45
7.4.280.0000.00816.47
7.4.270.0080.00016.36
7.4.260.0040.00416.57
7.4.250.0040.00416.54
7.4.240.0040.00416.50
7.4.230.0070.00016.35
7.4.220.0030.00316.53
7.4.210.0070.00716.49
7.4.200.0040.00416.43
7.4.160.0060.00916.54
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0130.00916.48
7.4.120.0130.00516.55
7.4.110.0070.01716.29
7.4.100.0120.00816.57
7.4.90.0120.00616.37
7.4.80.0070.01019.39
7.4.70.0160.01016.66
7.4.60.0080.00816.43
7.4.50.0060.00316.18
7.4.40.0130.00616.50
7.4.30.0130.00316.52
7.3.330.0000.00613.13
7.3.320.0020.00213.16
7.3.310.0000.00716.37
7.3.300.0000.00716.20
7.3.290.0070.01016.26
7.3.280.0080.00916.28
7.3.270.0060.01017.40
7.3.260.0100.00716.41
7.3.250.0150.00416.40
7.3.240.0070.01016.20
7.3.230.0130.01016.42
7.3.210.0110.00816.25
7.3.200.0120.00319.39
7.3.190.0130.00316.22
7.3.180.0060.00916.33
7.3.170.0120.00916.31
7.3.160.0000.01716.18
7.2.330.0100.00616.59
7.2.320.0110.00816.61
7.2.310.0110.00616.29
7.2.300.0120.00616.50
7.2.290.0060.01316.32
7.2.00.0100.00319.36
7.1.70.0100.00016.92
7.1.60.0060.01619.59
7.1.50.0070.01816.96
7.1.00.0000.08022.57
7.0.200.0030.00516.69
7.0.110.0070.04020.03
7.0.100.0000.04319.91
7.0.90.0430.04020.00
7.0.80.0530.06719.93
7.0.70.0300.03320.03
7.0.60.0430.05719.89
7.0.50.0530.03319.88
7.0.40.0130.05019.88
7.0.30.0130.02719.73
7.0.20.0070.04019.67
7.0.10.0070.04719.78
7.0.00.0130.03019.67
5.6.280.0000.07721.07
5.6.260.0030.05320.76
5.6.250.0130.03320.71
5.6.240.0100.06020.66
5.6.230.0100.05720.69
5.6.220.0070.04720.65
5.6.210.0100.07020.74
5.6.200.0070.08720.88
5.6.190.0100.02720.65
5.6.180.0070.05020.61
5.6.170.0100.04720.58
5.6.160.0100.04020.73
5.6.150.0130.04020.64
5.6.140.0100.06320.55
5.6.130.0070.03320.68
5.6.120.0000.05020.88
5.6.110.0030.07720.68
5.6.100.0070.05020.57
5.6.90.0030.04020.54
5.6.80.0070.04720.02
5.6.70.0100.04720.05
5.6.60.0230.02719.96
5.6.50.0000.06719.96
5.6.40.0070.04319.97
5.6.30.0030.07720.00
5.6.20.0100.05320.01
5.6.10.0070.06319.95
5.6.00.0000.06720.02
5.5.380.0000.04317.53
5.5.370.0030.03317.50
5.5.360.0070.07717.63
5.5.350.0030.07717.68
5.5.340.0000.03718.09
5.5.330.0000.03718.29
5.5.320.0030.05718.23
5.5.310.0030.05718.29
5.5.300.0070.07018.16
5.5.290.0100.07018.22
5.5.280.0030.07718.09
5.5.270.0000.04318.17
5.5.260.0030.04318.18
5.5.250.0100.07017.68
5.5.240.0000.03717.46
5.5.230.0070.04717.57
5.5.220.0000.08017.38
5.5.210.0170.03317.47
5.5.200.0030.05017.35
5.5.190.0030.04317.12
5.5.180.0030.07017.44
5.5.160.0130.02717.12
5.5.150.0000.03717.51
5.5.140.0030.05717.27
5.5.130.0170.06317.51
5.5.120.0100.06317.50
5.5.110.0000.03717.65
5.5.100.0070.06717.17
5.5.90.0030.05717.45
5.5.80.0100.05717.33
5.5.70.0070.03717.19
5.5.60.0100.04017.15
5.5.50.0030.04717.44
5.5.40.0030.03317.54
5.5.30.0070.03017.24
5.5.20.0100.05017.32
5.5.10.0100.06317.43
5.5.00.0000.04717.32
5.4.450.0200.03019.47
5.4.440.0000.05319.53
5.4.430.0030.05319.62
5.4.420.0070.04319.44
5.4.410.0000.04319.34
5.4.400.0100.05019.13
5.4.390.0070.04019.21
5.4.380.0070.03719.14
5.4.370.0100.03319.30
5.4.360.0130.02719.19
5.4.350.0100.07019.13
5.4.340.0070.06719.20
5.4.320.0070.03018.98
5.4.310.0030.05318.99
5.4.300.0130.07019.00
5.4.290.0230.06719.19
5.4.280.0030.05319.00
5.4.270.0030.06318.98
5.4.260.0030.06019.13
5.4.250.0070.03019.18
5.4.240.0070.07719.07
5.4.230.0100.03019.08
5.4.220.0070.03718.99
5.4.210.0070.06718.99
5.4.200.0030.05019.02
5.4.190.0070.04719.13
5.4.180.0130.03719.09
5.4.170.0100.04719.07
5.4.160.0130.06319.18
5.4.150.0070.04019.11
5.4.140.0100.06016.26
5.4.130.0000.05316.50
5.4.120.0000.04316.12
5.4.110.0000.06016.49
5.4.100.0100.06316.54
5.4.90.0070.03016.09
5.4.80.0030.04716.43
5.4.70.0030.03316.49
5.4.60.0170.04716.45
5.4.50.0070.03316.46
5.4.40.0030.07016.24
5.4.30.0030.03716.38
5.4.20.0030.03716.36
5.4.10.0000.06016.14
5.4.00.0070.07015.62
5.3.290.0070.05014.68
5.3.280.0030.06014.45
5.3.270.0070.07014.50
5.3.260.0130.03314.54
5.3.250.0030.07014.53
5.3.240.0070.07014.53
5.3.230.0000.09314.62
5.3.220.0100.05314.56
5.3.210.0070.06014.43
5.3.200.0030.08014.58
5.3.190.0100.04314.45
5.3.180.0030.04014.58
5.3.170.0170.05714.39
5.3.160.0000.04314.56
5.3.150.0030.03714.42
5.3.140.0030.04314.53
5.3.130.0100.05314.44
5.3.120.0000.04314.62
5.3.110.0030.04014.45
5.3.100.0000.04314.06
5.3.90.0030.03714.09
5.3.80.0030.03313.87
5.3.70.0030.07713.84
5.3.60.0030.07713.84
5.3.50.0070.06014.01
5.3.40.0070.02714.02
5.3.30.0030.07313.96
5.3.20.0000.03713.58
5.3.10.0000.04313.50
5.3.00.0030.04313.65
5.2.170.0070.05311.96
5.2.160.0000.05311.96
5.2.150.0070.04011.96
5.2.140.0100.03711.96
5.2.130.0000.05711.96
5.2.120.0070.02311.96
5.2.110.0030.06011.96
5.2.100.0070.02711.96
5.2.90.0000.04011.96
5.2.80.0030.06311.96
5.2.70.0000.05711.96
5.2.60.0100.06311.96
5.2.50.0070.04711.96
5.2.40.0100.06011.96
5.2.30.0070.05011.96
5.2.20.0230.02311.96
5.2.10.0070.04311.96
5.2.00.0100.03011.96
5.1.60.0030.03011.96
5.1.50.0000.02711.96
5.1.40.0030.04311.96
5.1.30.0030.02711.96
5.1.20.0070.05711.96
5.1.10.0000.05011.96
5.1.00.0030.03711.96
5.0.50.0070.04011.96
5.0.40.0070.02011.96
5.0.30.0000.03311.96
5.0.20.0000.03011.96
5.0.10.0000.02711.96
5.0.00.0000.03711.96
4.4.90.0030.03311.96
4.4.80.0030.03311.96
4.4.70.0030.02011.96
4.4.60.0000.04011.96
4.4.50.0000.03711.96
4.4.40.0030.04711.96
4.4.30.0000.01711.96
4.4.20.0030.01711.96
4.4.10.0030.03011.96
4.4.00.0000.03011.96
4.3.110.0030.02311.96
4.3.100.0070.01711.96
4.3.90.0030.01311.96
4.3.80.0030.06011.96
4.3.70.0070.03011.96
4.3.60.0070.01711.96
4.3.50.0000.02011.96
4.3.40.0000.02711.96
4.3.30.0000.03711.96
4.3.20.0030.01711.96
4.3.10.0030.02711.96
4.3.00.0070.01711.96

preferences:
73.97 ms | 400 KiB | 5 Q