3v4l.org

run code in 300+ PHP versions simultaneously
<?php $consumer_key = '15102ae1bd15946317d6bc2aa980f00e'; $private_key = '8aa6278625c27ad152fcb13db2cebbba'; $params = array( 'cost' => 0.15, 'cost_model' => 'cpi' ); $mcrypt_iv = substr($consumer_key, 0, 16); $query_str = http_build_query($params); $enc_raw = mcrypt_encrypt( MCRYPT_RIJNDAEL_128, $private_key, $query_str, 'cbc', $mcrypt_iv); $enc_str = bin2hex( $enc_raw ); echo $enc_str ;

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.0110.00418.18
8.3.60.0140.00716.50
8.3.50.0050.01421.21
8.3.40.0120.00318.79
8.3.30.0110.00718.71
8.3.20.0070.00020.16
8.3.10.0080.00023.52
8.3.00.0080.00021.76
8.2.180.0090.00916.75
8.2.170.0070.00722.96
8.2.160.0100.00320.35
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0000.00821.00
8.2.120.0000.00826.35
8.2.110.0000.00919.30
8.2.100.0060.00617.77
8.2.90.0030.00518.90
8.2.80.0060.00317.97
8.2.70.0030.00617.38
8.2.60.0070.00417.80
8.2.50.0000.00818.09
8.2.40.0030.00622.16
8.2.30.0070.00019.32
8.2.20.0040.00417.55
8.2.10.0070.00018.08
8.2.00.0000.00717.97
8.1.280.0070.01425.92
8.1.270.0060.00322.20
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0040.00822.34
8.1.230.0070.00317.89
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0030.00320.57
8.1.150.0040.00420.79
8.1.140.0080.00019.51
8.1.130.0000.00717.66
8.1.120.0040.00317.29
8.1.110.0000.00717.27
8.1.100.0000.00717.38
8.1.90.0020.00517.37
8.1.80.0000.00717.29
8.1.70.0040.00417.39
8.1.60.0040.00417.54
8.1.50.0080.00017.43
8.1.40.0040.00417.50
8.1.30.0060.00317.64
8.1.20.0000.00817.65
8.1.10.0000.00717.52
8.1.00.0040.00417.38
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0070.00018.42
8.0.270.0070.00017.18
8.0.260.0030.00517.17
8.0.250.0040.00217.02
8.0.240.0030.00616.93
8.0.230.0000.00716.95
8.0.220.0000.00616.77
8.0.210.0000.00716.85
8.0.200.0030.00316.96
8.0.190.0030.00516.91
8.0.180.0070.00016.94
8.0.170.0040.00416.87
8.0.160.0000.00916.95
8.0.150.0070.00016.78
8.0.140.0050.00216.70
8.0.130.0030.00313.24
8.0.120.0000.00816.79
8.0.110.0040.00416.75
8.0.100.0040.00416.74
8.0.90.0040.00416.88
8.0.80.0130.00316.90
8.0.70.0080.00016.79
8.0.60.0050.00316.73
8.0.50.0030.00516.78
8.0.30.0080.01116.95
8.0.20.0100.01417.40
8.0.10.0000.00716.82
8.0.00.0100.00916.88
7.4.330.0050.00016.67
7.4.320.0030.00316.40
7.4.300.0050.00316.50
7.4.290.0030.00716.52
7.4.280.0040.00416.48
7.4.270.0070.00016.59
7.4.260.0040.00416.39
7.4.250.0000.00716.54
7.4.240.0030.00516.64
7.4.230.0030.00316.68
7.4.220.0120.00916.57
7.4.210.0120.00616.70
7.4.200.0000.00716.44
7.4.160.0030.01316.32
7.4.150.0030.01617.40
7.4.140.0100.00917.86
7.4.130.0080.01116.51
7.4.120.0050.01316.54
7.4.110.0130.00316.39
7.4.100.0090.00916.39
7.4.90.0080.01116.57
7.4.80.0030.01419.39
7.4.70.0090.01316.41
7.4.60.0090.00816.36
7.4.50.0050.00516.50
7.4.40.0090.00616.58
7.4.30.0080.00816.51
7.4.00.0070.00714.86
7.3.330.0000.00613.24
7.3.320.0000.00513.17
7.3.310.0030.00316.12
7.3.300.0030.00316.29
7.3.290.0090.00816.22
7.3.280.0070.01116.25
7.3.270.0120.00617.40
7.3.260.0060.01016.50
7.3.250.0110.00716.28
7.3.240.0090.00816.30
7.3.230.0150.00416.39
7.3.210.0030.01316.23
7.3.200.0030.01419.39
7.3.190.0120.00916.36
7.3.180.0100.00616.50
7.3.170.0110.00616.44
7.3.160.0120.00316.46
7.2.330.0070.01116.70
7.2.320.0110.00716.60
7.2.310.0100.00716.65
7.2.300.0100.00616.33
7.2.290.0110.01116.40
7.2.60.0250.00816.40
7.2.00.0000.01219.57
7.1.200.0000.01315.54
7.1.70.0000.00717.13
7.1.60.0040.00717.32
7.1.50.0090.01316.86
7.1.00.0000.08022.36
7.0.200.0060.00916.68
7.0.60.0200.06721.75
7.0.50.0000.08717.98
7.0.40.0000.08320.09
7.0.30.0300.06320.05
7.0.20.0500.07020.09
7.0.10.0100.05720.30
7.0.00.0100.03720.16
5.6.280.0070.02721.06
5.6.210.0100.03720.46
5.6.200.0130.08018.29
5.6.190.0100.08020.68
5.6.180.0270.07720.40
5.6.170.0230.06020.39
5.6.160.0130.07020.45
5.6.150.0100.07018.19
5.6.140.0100.08018.17
5.6.130.0030.06318.19
5.6.120.0100.04721.13
5.6.110.0130.06321.12
5.6.100.0030.08721.01
5.6.90.0030.07321.11
5.6.80.0230.05720.50
5.5.350.0000.08020.38
5.5.340.0100.07718.00
5.5.330.0430.03720.19
5.5.320.0170.05020.52
5.5.310.0270.06020.20
5.5.300.0130.07317.89
5.5.290.0100.07717.89
5.5.280.0030.07320.70
5.5.270.0100.08020.67
5.5.260.0000.04720.83
5.5.250.0170.06720.72
5.5.240.0100.07720.43

preferences:
50.9 ms | 401 KiB | 5 Q