3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ved_decode($ved) { /* // Copyright 2013 Deed Poll Office Ltd, UK <https://deedpolloffice.com> // Licensed under Apache Licence v2.0 <http://apache.org/licenses/LICENSE-2.0> $keys = array('t' => 2, 'r' => 6, 's' => 7, 'i' => 1); $ret = array(); if (substr($ved, 0, 1) == '1') { preg_match_all('/([a-z]+):([0-9]+)/i', $ved, $matches, PREG_SET_ORDER); foreach ($matches as $m) $ret[isset($keys[$m[1]]) ? $keys[$m[1]] : $m[1]] = (int) $m[2]; return $ret; } */ preg_match_all('/([\x80-\xff]*[\0-\x7f])([\x80-\xff]*[\0-\x7f])/', base64_decode(str_replace(array('_','-'), array('+','/'), substr($ved, 1))), $matches, PREG_SET_ORDER); foreach ($matches as $m) { var_dump($m); $key = $val = 0; foreach (str_split($m[1]) as $i => $c){ echo '--'. (ord($c) & 0x7f) .'--'; $key += (ord($c) & 0x7f) << $i * 7; } foreach (str_split($m[2]) as $i => $c) { $val += (ord($c) & 0x7f) << $i * 7; } $ret[$key >> 3] = $val; } return $ret; } // Example of use: print_r(ved_decode('ahUKEwiHlMTro9_bAhVEtxQKHbTpDKAQFgiIAjAL'));

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.0070.01316.63
8.3.50.0120.00618.48
8.3.40.0060.01018.95
8.3.30.0090.00618.91
8.3.20.0080.00019.23
8.3.10.0080.00021.04
8.3.00.0000.00823.65
8.2.180.0090.00918.38
8.2.170.0110.00722.96
8.2.160.0140.00020.38
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00419.95
8.2.120.0040.00426.35
8.2.110.0060.00621.30
8.2.100.0040.00719.24
8.2.90.0040.00419.25
8.2.80.0060.00318.04
8.2.70.0080.00018.05
8.2.60.0060.00317.93
8.2.50.0000.00818.10
8.2.40.0040.00419.46
8.2.30.0000.00719.60
8.2.20.0070.00018.21
8.2.10.0080.00019.93
8.2.00.0000.00719.35
8.1.280.0130.00325.92
8.1.270.0000.00821.98
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0060.00321.11
8.1.230.0000.01117.70
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0100.00017.60
8.1.190.0040.00417.35
8.1.180.0020.00518.10
8.1.170.0050.00318.59
8.1.160.0080.00018.89
8.1.150.0040.00418.87
8.1.140.0040.00417.78
8.1.130.0050.00318.96
8.1.120.0030.00617.53
8.1.110.0000.00917.57
8.1.100.0000.01117.52
8.1.90.0000.00817.65
8.1.80.0030.00517.51
8.1.70.0070.00317.61
8.1.60.0040.00417.77
8.1.50.0000.00817.67
8.1.40.0040.00417.69
8.1.30.0100.00317.84
8.1.20.0000.00817.84
8.1.10.0040.00417.72
8.1.00.0040.00417.55
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.52
8.0.270.0020.00517.29
8.0.260.0070.00017.29
8.0.250.0030.00317.15
8.0.240.0040.00417.00
8.0.230.0070.00017.02
8.0.220.0030.00317.03
8.0.210.0040.00416.90
8.0.200.0000.00817.17
8.0.190.0040.00417.00
8.0.180.0000.01016.98
8.0.170.0000.00917.05
8.0.160.0030.00316.91
8.0.150.0040.00416.94
8.0.140.0000.00817.07
8.0.130.0030.00313.48
8.0.120.0000.00717.01
8.0.110.0080.00016.96
8.0.100.0080.00017.08
8.0.90.0040.00417.11
8.0.80.0090.01017.03
8.0.70.0070.00017.01
8.0.60.0040.00416.91
8.0.50.0050.00317.14
8.0.30.0110.01017.31
8.0.20.0090.01017.41
8.0.10.0030.00517.01
8.0.00.0060.01216.89
7.4.330.0020.00215.55
7.4.320.0000.00716.75
7.4.300.0000.00616.69
7.4.290.0070.00016.70
7.4.280.0080.00316.81
7.4.270.0040.00716.80
7.4.260.0080.00016.72
7.4.250.0030.00316.63
7.4.240.0050.00216.84
7.4.230.0030.00416.63
7.4.220.0030.00516.89
7.4.210.0040.01116.82
7.4.200.0070.00016.75
7.4.160.0100.00716.82
7.4.140.0120.01017.86
7.4.130.0090.00916.74
7.4.120.0110.01116.72
7.4.110.0070.01116.62
7.4.100.0120.00916.90
7.4.90.0040.01516.62
7.4.80.0040.01519.39
7.4.70.0090.00916.65
7.4.60.0040.01616.73
7.4.50.0110.00416.77
7.4.40.0080.01416.70
7.3.330.0050.00013.53
7.3.320.0000.00613.55
7.3.310.0000.00716.43
7.3.300.0040.00416.54
7.3.290.0000.00716.49
7.3.280.0060.01516.53
7.3.260.0090.01016.75
7.3.240.0060.01316.66
7.3.230.0160.00416.52
7.3.210.0140.00416.80
7.3.200.0140.00916.64
7.3.190.0040.01416.51
7.3.180.0170.00016.76
7.3.170.0120.00616.68
7.3.160.0100.00716.79
7.2.330.0100.00916.84
7.2.320.0100.01016.65
7.2.310.0090.01217.04
7.2.300.0180.01216.82
7.2.290.0120.00816.82

preferences:
58.81 ms | 400 KiB | 5 Q