3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function encodeString($str) { for ($i = 0; $i < 5; ++$i) { $str = base64_decode(strrev($str)); } return $str; } /*var_dump(encodeString('=AFVxIkVWRWYSdlUhRVbwh1YqZkcUVVOhFGbWlXVtFDa')); var_dump(encodeString('=AFVxI1VrRWYSdlUhRVbwh1YqZkcUVVOhFGbWlXVtFDa')); var_dump(encodeString('==AUUFjQWZlWX10VSFmUtBnUWdkUzVlbOd3VGpleVxGZaZ1aKVlV650cidkRoRVb4plUxA3VWZFa0ImVaVlUtFDaW1Ge1Z1aJhnVGFUP')); var_dump(encodeString('==AUUFjQWZFZhJVbShlVrZlaTVEczZlbjVjVxIVWS1GcoZVbSZUWVx2cStWMLJFbSV1Yx82dVJDehFWMaRVVrpVaZZFczZ1aJhnVGFUP')); var_dump(encodeString('==AUUFjQWZlWhJFbOhWYEJUalZEbzZ1akdUTxI1VVxGZoFmRKNXVsR2aS1mSoVVbwZVZWxmVV1GbTFWMKhmUtFzUT12d6ZVb0gnVGFUP')); */ var_dump(encodeString('==AUUFjQWZlVLJVbSl1VthnUTVkWYRlVOBjVWpFMhZEaoV1MoRXVxQ2ViVEMwQmRkVlVxA3cZFjU3JmVKd3VqZ0VVFjSZZlM0gnVGFUP')); var_dump(strrev("Rl zccsm'x ufm sdkfx scgddx tulubfg? Nqtr ybfsc mq ufmq 'tpgnredlxma dckdukgt'? Nkpa lqu klsc bfsc: /ushltqscPzty"));
based on WUY8T

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.40.0090.00614.70
7.3.30.0050.00814.75
7.3.20.0070.00916.28
7.3.10.0090.00716.29
7.3.00.0100.00716.15
7.2.170.0110.00514.94
7.2.160.0080.00714.84
7.2.150.0090.00916.57
7.2.140.0130.00516.59
7.2.130.0080.00916.56
7.2.120.0110.00616.52
7.2.110.0780.00915.88
7.2.100.0690.00815.65
7.2.90.1180.00715.77
7.2.80.0570.00915.77
7.2.70.0810.00815.87
7.2.60.0560.00815.90
7.2.50.0580.00815.91
7.2.40.0640.00815.91
7.2.30.0510.00815.94
7.2.20.0650.00815.96
7.2.10.0560.00815.93
7.2.00.0460.00816.01
7.1.280.0110.00615.44
7.1.270.0090.00615.44
7.1.260.0110.00715.47
7.1.250.0100.00615.45
7.1.240.0090.00915.37
7.1.230.0850.00714.72
7.1.220.0780.00714.76
7.1.210.0520.00714.72
7.1.200.0560.00814.70
7.1.190.0450.00814.77
7.1.180.0480.00714.71
7.1.170.0660.00814.69
7.1.160.0570.00614.79
7.1.150.0740.00714.77
7.1.140.0770.00814.83
7.1.130.0600.00714.82
7.1.120.0700.00814.97
7.1.110.0460.00814.93
7.1.100.0590.00814.92
7.1.90.0420.00815.03
7.1.80.0470.00715.06
7.1.70.0400.00714.97
7.1.60.0510.00823.21
7.1.50.0510.00823.10
7.1.40.0480.00923.14
7.1.30.0490.00823.14
7.1.20.0580.00923.16
7.1.10.0360.00814.83
7.1.00.0350.00714.85
7.0.330.0160.00815.00
7.0.320.0100.00814.79
7.0.310.0870.00713.95
7.0.300.0850.00914.04
7.0.290.1140.00813.93
7.0.280.1060.00714.00
7.0.270.0790.00914.05
7.0.260.0800.00814.36
7.0.250.0810.00714.36
7.0.240.0680.00714.38
7.0.230.0850.00714.33
7.0.220.0760.00614.29
7.0.210.0750.00714.19
7.0.200.0730.00914.29
7.0.190.0610.00714.20
7.0.180.0690.00814.21
7.0.170.0600.00514.16
7.0.160.0660.00914.23
7.0.150.0500.00814.21
7.0.140.0470.00714.18
7.0.130.0650.00814.22
7.0.120.0470.00614.26
7.0.110.0520.00714.18
7.0.100.0650.00914.20
7.0.90.0510.00814.21
7.0.80.0410.00714.24
7.0.70.0410.00714.24
7.0.60.0410.00814.17
7.0.50.0520.00714.31
7.0.40.0470.00414.29
7.0.30.0470.00714.31
7.0.20.0390.00914.22
7.0.10.0460.00714.23
7.0.00.0460.00614.33
hhvm-3.22.00.1290.17390.47
hhvm-3.21.30.1060.16689.04
hhvm-3.21.00.1140.18089.79
hhvm-3.20.20.1200.17290.32
hhvm-3.19.20.1210.16789.04
hhvm-3.18.50.1010.16187.16
hhvm-3.18.40.1110.17087.73
hhvm-3.17.30.1100.15587.01
hhvm-3.15.40.1070.15084.67
hhvm-3.13.20.1180.15795.97
hhvm-3.12.140.1140.16795.01
hhvm-3.11.10.1170.16486.95
hhvm-3.10.10.1050.16984.20
5.6.400.0110.00814.03
5.6.390.0090.01014.17
5.6.380.0110.00814.12
5.6.370.0130.00914.19
5.6.360.0120.00814.24
5.6.350.0140.00914.19
5.6.340.0120.01014.17
5.6.330.0150.00614.18
5.6.320.0120.00914.27
5.6.310.0120.00914.25
5.6.300.0120.01515.22
5.6.290.0150.01415.18
5.6.280.0120.01715.28
5.6.270.0150.01415.29
5.6.260.0140.01415.27
5.6.250.0130.01615.21
5.6.240.0140.01615.27
5.6.230.0120.01615.26
5.6.220.0130.01415.24
5.6.210.0120.01815.17
5.6.200.0130.01615.25
5.6.190.0140.01515.20
5.6.180.0110.01715.27
5.6.170.0130.01615.14
5.6.160.0130.01515.22
5.6.150.0110.01515.22
5.6.140.0160.01415.26
5.6.130.0130.01715.25
5.6.120.0110.01715.29
5.6.110.0120.01615.25
5.6.100.0110.01715.14
5.6.90.0120.01715.27
5.6.80.0120.01515.14
5.6.70.0140.01315.06
5.6.60.0140.01515.01
5.6.50.0140.01515.01
5.6.40.0090.01714.99
5.6.30.0120.01715.06
5.6.20.0140.01315.08
5.6.10.0130.01615.02
5.6.00.0110.01515.01
5.5.380.0110.00511.98
5.5.370.0110.00611.80
5.5.360.0100.00711.94
5.5.350.0130.00312.00
5.5.340.0100.00711.97
5.5.330.0110.00511.94
5.5.320.0110.00611.93
5.5.310.0100.00811.97
5.5.300.0120.00711.88
5.5.290.0100.00611.98
5.5.280.0110.00611.94
5.5.270.0110.00611.94
5.5.260.0110.00611.89
5.5.250.0090.00811.88
5.5.240.0100.00711.83
5.5.230.0100.00811.83
5.5.220.0080.00911.86
5.5.210.0110.00611.89
5.5.200.0110.00511.90
5.5.190.0090.00811.91
5.5.180.0100.00711.89
5.5.170.0120.01014.09
5.5.160.0080.00811.80
5.5.150.0090.00711.82
5.5.140.0110.00711.88
5.5.130.0120.00711.82
5.5.120.0110.00611.95
5.5.110.0080.00811.87
5.5.100.0110.00511.78
5.5.90.0120.00611.79
5.5.80.0090.00811.86
5.5.70.0100.00711.91
5.5.60.0120.00611.81
5.5.50.0110.00611.77
5.5.40.0090.00911.83
5.5.30.0080.00811.82
5.5.20.0090.00711.86
5.5.10.0090.00611.86
5.5.00.0100.00811.82
5.4.450.0100.00611.01
5.4.440.0100.00611.06
5.4.430.0100.00511.05
5.4.420.0110.00411.04
5.4.410.0100.00610.98
5.4.400.0110.00511.02
5.4.390.0090.00510.97
5.4.380.0110.00510.97
5.4.370.0100.00610.90
5.4.360.0080.00711.02
5.4.350.0100.00610.94
5.4.340.0070.00810.93
5.4.330.0110.00311.01
5.4.320.0090.00510.95
5.4.310.0090.00510.97
5.4.300.0090.00610.95
5.4.290.0100.00610.96
5.4.280.0100.00510.95
5.4.270.0110.00410.90
5.4.260.0100.00410.94
5.4.250.0100.00510.90
5.4.240.0100.00510.96
5.4.230.0090.00610.89
5.4.220.0100.00510.91
5.4.210.0090.00510.90
5.4.200.0090.00510.91
5.4.190.0110.00410.94
5.4.180.0090.00611.01
5.4.170.0100.00510.85
5.4.160.0100.00510.91
5.4.150.0090.00610.76
5.4.140.0090.00610.98
5.4.130.0110.00610.92
5.4.120.0100.00510.94
5.4.110.0090.00511.02
5.4.100.0090.00610.98
5.4.90.0100.00510.92
5.4.80.0070.00610.98
5.4.70.0110.00410.93
5.4.60.0080.00610.99
5.4.50.0100.00510.87
5.4.40.0070.00610.86
5.4.30.0090.00511.02
5.4.20.0110.00510.95
5.4.10.0090.00510.97
5.4.00.0080.00610.94
5.3.290.0110.00310.65
5.3.280.0090.00510.49
5.3.270.0100.00310.54
5.3.260.0100.00510.56
5.3.250.0110.00410.56
5.3.240.0090.00410.44
5.3.230.0090.00410.50
5.3.220.0080.00510.35
5.3.210.0080.00410.30
5.3.200.0080.00610.39
5.3.190.0080.00510.32
5.3.180.0100.00410.51
5.3.170.0080.00510.48
5.3.160.0080.00410.47
5.3.150.0090.00510.50
5.3.140.0080.00510.48
5.3.130.0090.00510.48
5.3.120.0100.00410.42
5.3.110.0100.00410.37
5.3.100.0110.00210.49
5.3.90.0090.00410.51
5.3.80.0050.00710.29
5.3.70.0090.00410.33
5.3.60.0080.00610.50
5.3.50.0070.00610.41
5.3.40.0080.00510.41
5.3.30.0090.00410.53
5.3.20.0080.00710.44
5.3.10.0080.00610.25
5.3.00.0070.00610.26
5.2.170.0060.0059.60
5.2.160.0080.0039.60
5.2.150.0070.0059.60
5.2.140.0070.0049.61
5.2.130.0090.0039.54
5.2.120.0070.0059.55
5.2.110.0080.0039.59
5.2.100.0080.0059.56
5.2.90.0100.0039.56
5.2.80.0080.0049.52
5.2.70.0050.0079.55
5.2.60.0070.0059.54
5.2.50.0070.0049.54
5.2.40.0090.0039.57
5.2.30.0040.0089.52
5.2.20.0080.0049.53
5.2.10.0080.0039.45
5.2.00.0070.0039.47
5.1.60.0060.0049.34
5.1.50.0070.0029.34
5.1.40.0050.0069.38
5.1.30.0060.0049.37
5.1.20.0070.0049.35
5.1.10.0060.0049.38
5.1.00.0070.0049.37
5.0.50.0050.0039.34
5.0.40.0040.0049.34
5.0.30.0050.0049.34
5.0.20.0040.0049.34
5.0.10.0040.0049.34
5.0.00.0060.0039.34
4.4.90.0020.0059.34
4.4.80.0050.0039.34
4.4.70.0050.0039.34
4.4.60.0040.0039.34
4.4.50.0030.0039.34
4.4.40.0050.0019.34
4.4.30.0050.0029.34
4.4.20.0060.0029.34
4.4.10.0030.0059.34
4.4.00.0030.0049.34
4.3.110.0040.0049.34
4.3.100.0050.0039.34
4.3.90.0030.0049.34
4.3.80.0040.0049.34
4.3.70.0050.0029.34
4.3.60.0040.0039.34
4.3.50.0050.0039.34
4.3.40.0040.0039.34
4.3.30.0020.0049.34
4.3.20.0040.0039.34
4.3.10.0030.0039.34
4.3.00.0040.0029.34