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){ $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.0110.00718.55
8.3.50.0130.00718.33
8.3.40.0060.01019.00
8.3.30.0120.00318.70
8.3.20.0050.00319.29
8.3.10.0000.00821.04
8.3.00.0080.00023.65
8.2.180.0130.01018.66
8.2.170.0110.00422.96
8.2.160.0140.00320.38
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0090.00020.07
8.2.120.0080.00026.35
8.2.110.0000.01022.20
8.2.100.0040.00818.16
8.2.90.0090.00019.22
8.2.80.0040.00418.04
8.2.70.0030.00518.05
8.2.60.0040.00417.93
8.2.50.0030.00518.10
8.2.40.0000.00719.51
8.2.30.0070.00019.49
8.2.20.0040.00418.05
8.2.10.0040.00418.08
8.2.00.0040.00419.50
8.1.280.0110.00725.92
8.1.270.0040.00422.16
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.96
8.1.230.0110.00017.95
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.84
8.1.160.0070.00018.87
8.1.150.0040.00418.84
8.1.140.0070.00017.72
8.1.130.0040.00419.07
8.1.120.0000.01017.48
8.1.110.0030.00617.58
8.1.100.0080.00817.62
8.1.90.0090.00017.64
8.1.80.0040.00417.49
8.1.70.0040.00417.63
8.1.60.0000.00817.66
8.1.50.0060.00317.53
8.1.40.0030.00517.62
8.1.30.0080.00417.80
8.1.20.0000.00717.87
8.1.10.0000.00817.76
8.1.00.0060.00317.61
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.46
8.0.270.0050.00317.30
8.0.260.0000.00817.26
8.0.250.0000.00717.12
8.0.240.0080.00017.04
8.0.230.0000.00817.11
8.0.220.0040.00417.06
8.0.210.0000.00716.93
8.0.200.0050.00217.14
8.0.190.0040.00417.12
8.0.180.0000.01117.04
8.0.170.0000.00917.11
8.0.160.0030.00516.93
8.0.150.0020.00517.05
8.0.140.0040.00417.00
8.0.130.0000.00613.47
8.0.120.0070.00017.01
8.0.110.0040.00416.91
8.0.100.0030.00517.02
8.0.90.0000.00717.01
8.0.80.0060.01217.02
8.0.70.0040.00416.92
8.0.60.0000.00717.07
8.0.50.0050.00316.90
8.0.30.0080.01017.24
8.0.20.0090.01217.40
8.0.10.0050.00317.07
8.0.00.0130.01217.08
7.4.330.0000.00515.55
7.4.320.0040.00416.63
7.4.300.0030.00316.68
7.4.290.0030.00316.63
7.4.280.0030.00616.81
7.4.270.0080.00316.66
7.4.260.0050.00316.76
7.4.250.0040.00416.63
7.4.240.0000.00816.83
7.4.230.0000.00716.65
7.4.220.0040.00416.46
7.4.210.0080.00916.80
7.4.200.0040.00416.75
7.4.160.0120.00616.61
7.4.140.0110.01017.86
7.4.130.0090.00916.76
7.4.120.0130.00716.68
7.4.110.0030.02116.66
7.4.100.0070.01116.62
7.4.90.0050.01516.69
7.4.80.0130.01019.39
7.4.70.0080.01116.52
7.4.60.0090.01216.79
7.4.50.0000.01616.37
7.4.40.0100.01416.68
7.4.10.0070.01315.27
7.4.00.0030.01414.82
7.3.330.0050.00013.37
7.3.320.0050.00013.37
7.3.310.0040.00416.37
7.3.300.0050.00216.39
7.3.290.0000.00716.53
7.3.280.0120.00716.48
7.3.260.0130.00716.55
7.3.240.0130.00716.76
7.3.230.0060.01216.57
7.3.210.0070.01116.50
7.3.200.0140.00616.47
7.3.190.0100.01316.54
7.3.180.0100.01316.48
7.3.170.0110.00816.88
7.3.160.0130.00316.76
7.3.130.0030.01315.02
7.3.120.0000.01515.25
7.3.110.0030.01714.73
7.3.100.0090.00614.93
7.3.90.0070.00714.83
7.3.80.0080.00415.03
7.3.70.0050.00514.81
7.3.60.0080.01214.76
7.3.50.0000.01914.81
7.3.40.0030.00915.08
7.3.30.0070.00315.13
7.3.20.0090.00617.00
7.3.10.0140.00016.66
7.3.00.0080.00416.73
7.2.330.0040.01716.88
7.2.320.0090.01216.82
7.2.310.0100.01017.02
7.2.300.0070.01416.85
7.2.290.0050.01816.86
7.2.260.0030.01715.22
7.2.250.0110.00915.23
7.2.240.0110.00715.17
7.2.230.0040.01515.44
7.2.220.0060.00915.45
7.2.210.0030.01315.16
7.2.200.0040.00815.23
7.2.190.0070.01015.34
7.2.180.0120.00315.21
7.2.170.0060.01115.21
7.2.160.0000.01415.12
7.2.150.0000.01116.91
7.2.140.0060.01017.23
7.2.130.0060.01217.21
7.2.120.0080.00416.96
7.2.110.0040.01117.06
7.2.100.0030.01017.26
7.2.90.0040.00717.29
7.2.80.0030.00617.21
7.2.70.0130.00617.26
7.2.60.0100.00717.23
7.2.50.0040.01416.99
7.2.40.0000.01717.19
7.2.30.0040.01517.08
7.2.20.0080.00617.35
7.2.10.0100.00317.08
7.2.00.0080.01117.26
7.1.330.0060.00915.66
7.1.320.0140.00016.14
7.1.310.0070.00715.71
7.1.300.0040.01116.13
7.1.290.0070.01116.02
7.1.280.0060.00915.64
7.1.270.0070.01115.80
7.1.260.0000.01415.76
7.1.250.0070.01015.74
7.1.240.0120.00315.82
7.1.230.0030.01315.93
7.1.220.0060.00616.09
7.1.210.0040.01115.98
7.1.200.0000.01016.13
7.1.190.0040.01116.09
7.1.180.0030.01515.98
7.1.170.0090.00015.96
7.1.160.0030.01016.07
7.1.150.0120.00316.08
7.1.140.0030.01016.11
7.1.130.0140.00016.15
7.1.120.0070.01016.06
7.1.110.0070.01016.06
7.1.100.0140.00015.93
7.1.90.0060.01016.09
7.1.80.0080.00615.68
7.1.70.0070.00716.14
7.1.60.0130.00316.16
7.1.50.0030.01315.80
7.1.40.0100.00315.89
7.1.30.0040.01116.09
7.1.20.0070.01016.19
7.1.10.0070.01116.16
7.1.00.0000.01316.01
7.0.330.0070.00715.64
7.0.320.0000.01015.46
7.0.310.0040.01415.27
7.0.300.0110.00015.64
7.0.290.0090.00615.18
7.0.280.0000.01315.30
7.0.270.0090.00015.42
7.0.260.0090.00715.63
7.0.250.0070.01015.77
7.0.240.0040.01115.48
7.0.230.0100.00315.78
7.0.220.0070.00715.51
7.0.210.0080.00415.77
7.0.200.0070.00415.72
7.0.190.0030.01415.63
7.0.180.0070.00715.56
7.0.170.0000.00915.37
7.0.160.0000.01715.62
7.0.150.0070.01115.48
7.0.140.0090.00615.55
7.0.130.0090.00615.61
7.0.120.0030.00615.70
7.0.110.0040.00715.74
7.0.100.0030.01015.64
7.0.90.0090.00315.47
7.0.80.0120.00015.65
7.0.70.0030.00615.75
7.0.60.0070.00715.52
7.0.50.0090.00015.48
7.0.40.0040.01213.84
7.0.30.0030.00713.45
7.0.20.0100.00713.45
7.0.10.0040.00813.70
7.0.00.0030.00713.55
5.6.400.0100.00314.58
5.6.390.0130.00314.48
5.6.380.0040.00714.47
5.6.370.0100.00714.41
5.6.360.0030.01314.73
5.6.350.0070.01014.55
5.6.340.0180.00014.05
5.6.330.0000.01614.52
5.6.320.0130.00314.39
5.6.310.0070.01114.58
5.6.300.0100.00314.86
5.6.290.0070.00714.45
5.6.280.0070.00714.91
5.6.270.0070.00714.84
5.6.260.0040.00714.75
5.6.250.0040.00714.30
5.6.240.0090.00314.79
5.6.230.0060.00614.71
5.6.220.0030.00614.27
5.6.210.0060.00914.53
5.6.200.0110.00714.40
5.6.190.0040.00714.50
5.6.180.0030.01014.57
5.6.170.0030.00814.32
5.6.160.0100.00714.32
5.6.150.0030.01014.78
5.6.140.0030.01114.60
5.6.130.0040.00814.46
5.6.120.0030.01414.61
5.6.110.0100.00314.67
5.6.100.0030.01314.52
5.6.90.0000.01414.32
5.6.80.0080.00414.35
5.6.70.0060.01014.51
5.6.60.0090.00614.69
5.6.50.0030.00914.61
5.6.40.0000.01214.46
5.6.30.0000.01414.21
5.6.20.0070.00714.52
5.6.10.0090.00314.52
5.6.00.0070.00714.43

preferences:
72.73 ms | 401 KiB | 5 Q