3v4l.org

run code in 300+ PHP versions simultaneously
<?php $consumer_key = '15102ae1bd15946317d6bc2aa980f00e'; $private_key = '8aa6278625c27ad152fcb13db2cebbba'; $params = array( 'cost' => 3.00, '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.60.0110.01116.63
8.3.50.0070.01121.10
8.3.40.0120.00318.84
8.3.30.0180.00018.84
8.3.20.0070.01120.20
8.3.10.0040.00421.78
8.3.00.0050.00221.65
8.2.180.0140.00716.38
8.2.170.0110.00422.96
8.2.160.0070.00720.45
8.2.150.0030.00524.18
8.2.140.0000.00724.66
8.2.130.0040.00421.06
8.2.120.0040.00426.35
8.2.110.0060.00320.35
8.2.100.0060.00617.90
8.2.90.0050.00319.25
8.2.80.0050.00317.97
8.2.70.0090.00017.38
8.2.60.0000.00917.80
8.2.50.0050.00318.09
8.2.40.0000.00922.19
8.2.30.0030.00319.27
8.2.20.0000.00817.70
8.2.10.0000.00718.04
8.2.00.0000.00718.12
8.1.280.0110.00725.92
8.1.270.0090.00922.15
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0080.00022.24
8.1.230.0040.00817.70
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0000.00819.01
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0050.00220.70
8.1.150.0050.00318.93
8.1.140.0040.00419.42
8.1.130.0050.00317.65
8.1.120.0040.00417.43
8.1.110.0040.00417.30
8.1.100.0030.00617.28
8.1.90.0080.00017.36
8.1.80.0040.00417.27
8.1.70.0000.00717.38
8.1.60.0000.00717.50
8.1.50.0030.00617.53
8.1.40.0000.01117.50
8.1.30.0080.00017.50
8.1.20.0040.00417.70
8.1.10.0000.00717.54
8.1.00.0040.00417.57
8.0.300.0000.00818.78
8.0.290.0030.00616.75
8.0.280.0000.00718.42
8.0.270.0000.00717.19
8.0.260.0000.00617.17
8.0.250.0030.00316.91
8.0.240.0050.00216.90
8.0.230.0040.00416.86
8.0.220.0030.00316.87
8.0.210.0050.00216.91
8.0.200.0030.00316.93
8.0.190.0000.00716.93
8.0.180.0000.00716.86
8.0.170.0050.00316.93
8.0.160.0040.00416.86
8.0.150.0000.00716.82
8.0.140.0020.00616.82
8.0.130.0060.00013.32
8.0.120.0000.00816.76
8.0.110.0030.00516.86
8.0.100.0070.00016.82
8.0.90.0040.00416.86
8.0.80.0090.00616.95
8.0.70.0040.00416.89
8.0.60.0000.00716.74
8.0.50.0020.00516.83
8.0.30.0080.01217.03
8.0.20.0080.01117.40
8.0.10.0070.00016.88
8.0.00.0100.00916.70
7.4.330.0000.00516.70
7.4.320.0030.00316.58
7.4.300.0080.00016.57
7.4.290.0030.00316.49
7.4.280.0040.00416.59
7.4.270.0030.00516.43
7.4.260.0070.00016.46
7.4.250.0040.00416.45
7.4.240.0040.00416.58
7.4.230.0000.00716.39
7.4.220.0170.00016.46
7.4.210.0060.01016.52
7.4.200.0000.00716.66
7.4.160.0130.00316.52
7.4.150.0110.00717.40
7.4.140.0160.00617.86
7.4.130.0140.00716.58
7.4.120.0050.01116.56
7.4.110.0060.01216.47
7.4.100.0030.01516.54
7.4.90.0110.01216.38
7.4.80.0130.01019.39
7.4.70.0030.01416.58
7.4.60.0090.00616.45
7.4.50.0070.00716.57
7.4.40.0120.00416.51
7.4.30.0110.00616.39
7.4.00.0110.00414.88
7.3.330.0040.00413.13
7.3.320.0050.00013.12
7.3.310.0000.00816.12
7.3.300.0070.00016.25
7.3.290.0040.00416.21
7.3.280.0090.01016.30
7.3.270.0080.01117.40
7.3.260.0140.00316.25
7.3.250.0100.00716.38
7.3.240.0120.00516.31
7.3.230.0090.00916.39
7.3.210.0070.01016.45
7.3.200.0070.01019.39
7.3.190.0090.00616.48
7.3.180.0060.00916.25
7.3.170.0060.01316.38
7.3.160.0040.01116.48
7.3.120.0090.00614.86
7.3.110.0070.01014.72
7.3.100.0070.01114.66
7.3.90.0110.00614.75
7.3.80.0000.01214.87
7.3.70.0000.01314.77
7.3.60.0090.00014.85
7.3.50.0030.01014.60
7.3.40.0030.01014.72
7.3.30.0040.00414.88
7.3.20.0090.00316.69
7.3.10.0080.00716.41
7.3.00.0080.00716.53
7.2.330.0100.00716.41
7.2.320.0120.00616.54
7.2.310.0030.01316.35
7.2.300.0090.01216.65
7.2.290.0040.01116.69
7.2.240.0100.00714.82
7.2.230.0060.00614.77
7.2.220.0040.01215.14
7.2.210.0030.00715.13
7.2.200.0060.00614.83
7.2.190.0090.00315.04
7.2.180.0030.01014.98
7.2.170.0110.00314.74
7.2.160.0130.00014.98
7.2.150.0100.00716.91
7.2.140.0100.00316.68
7.2.130.0100.00516.95
7.2.120.0110.00616.74
7.2.110.0070.00416.63
7.2.100.0030.00816.70
7.2.90.0030.00716.85
7.2.80.0060.00716.67
7.2.70.0080.00316.77
7.2.60.0040.00916.78
7.2.50.0060.00816.63
7.2.40.0060.00916.66
7.2.30.0100.00816.63
7.2.20.0030.01116.73
7.2.10.0050.00916.88
7.2.00.0020.01117.65
7.1.330.0030.01015.77
7.1.320.0000.01415.61
7.1.310.0120.00315.97
7.1.300.0000.01015.71
7.1.290.0060.00615.83
7.1.280.0030.00915.61
7.1.270.0030.01015.77
7.1.260.0040.00915.79
7.1.250.0000.01115.80
7.1.200.0060.00815.84
7.1.100.0070.00718.22
7.1.70.0000.00917.14
7.1.60.0130.01319.40
7.1.50.0100.01016.56
7.1.00.0030.07322.43
7.0.200.0340.00314.14
7.0.60.0200.04019.82
7.0.50.0100.07317.93
7.0.40.0030.06320.40
7.0.30.0300.08020.04
7.0.20.0300.08320.18
7.0.10.0000.04720.13
7.0.00.0030.09020.21
5.6.280.0030.03021.11
5.6.210.0000.05320.47
5.6.200.0070.08018.29
5.6.190.0130.06720.41
5.6.180.0230.04720.41
5.6.170.0200.05320.45
5.6.160.0070.05020.50
5.6.150.0130.05318.22
5.6.140.0070.05318.16
5.6.130.0070.03718.09
5.6.120.0070.03721.14
5.6.110.0100.07721.20
5.6.100.0030.04021.11
5.6.90.0130.05021.10
5.6.80.0100.07720.46
5.5.350.0070.04020.39
5.5.340.0070.07718.00
5.5.330.0030.04320.45
5.5.320.0200.08020.18
5.5.310.0330.07020.32
5.5.300.0070.06018.02
5.5.290.0100.07718.09
5.5.280.0130.08020.91
5.5.270.0100.08320.90
5.5.260.0030.07720.90
5.5.250.0100.03720.48
5.5.240.0170.02720.34

preferences:
60.75 ms | 401 KiB | 5 Q