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.0200.00016.88
8.3.50.0160.00618.36
8.3.40.0160.00019.05
8.3.30.0110.00419.14
8.3.20.0040.00419.10
8.3.10.0060.00319.46
8.3.00.0040.00423.66
8.2.180.0070.01516.63
8.2.170.0150.00322.96
8.2.160.0090.00620.57
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00419.95
8.2.120.0100.00026.35
8.2.110.0060.00321.12
8.2.100.0090.00319.21
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0050.00317.93
8.2.60.0000.00817.79
8.2.50.0040.00418.10
8.2.40.0000.00819.46
8.2.30.0040.00419.43
8.2.20.0050.00318.04
8.2.10.0000.00718.04
8.2.00.0030.00619.54
8.1.280.0120.00325.92
8.1.270.0030.00621.91
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00021.17
8.1.230.0090.00317.77
8.1.220.0080.00017.80
8.1.210.0000.00918.77
8.1.200.0000.00917.48
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0020.00519.00
8.1.150.0050.00218.87
8.1.140.0040.00417.70
8.1.130.0000.00718.98
8.1.120.0030.00617.52
8.1.110.0040.00417.55
8.1.100.0030.00717.59
8.1.90.0040.00717.51
8.1.80.0000.00717.61
8.1.70.0050.00517.62
8.1.60.0090.00017.74
8.1.50.0030.00517.75
8.1.40.0000.00817.67
8.1.30.0030.00617.83
8.1.20.0050.00217.69
8.1.10.0050.00317.80
8.1.00.0000.00817.70
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.48
8.0.270.0000.00717.21
8.0.260.0030.00317.34
8.0.250.0050.00217.11
8.0.240.0000.00717.16
8.0.230.0030.00317.04
8.0.220.0000.00716.93
8.0.210.0050.00217.10
8.0.200.0060.00317.18
8.0.190.0040.00417.11
8.0.180.0040.00717.11
8.0.170.0060.00317.16
8.0.160.0050.00317.05
8.0.150.0040.00416.88
8.0.140.0030.00616.93
8.0.130.0030.00613.52
8.0.120.0000.00716.92
8.0.110.0040.00416.95
8.0.100.0050.00216.97
8.0.90.0000.00817.12
8.0.80.0090.01116.99
8.0.70.0040.00416.96
8.0.60.0000.00816.93
8.0.50.0000.00816.84
8.0.30.0080.01117.19
8.0.20.0110.00917.47
8.0.10.0030.00516.98
8.0.00.0210.01616.84
7.4.330.0000.00515.55
7.4.320.0060.00016.80
7.4.300.0040.00416.59
7.4.290.0030.00316.68
7.4.280.0080.00316.73
7.4.270.0100.00016.63
7.4.260.0030.00516.70
7.4.250.0030.00316.78
7.4.240.0050.00216.73
7.4.230.0070.00016.86
7.4.220.0040.00416.87
7.4.210.0070.00716.88
7.4.200.0040.00416.90
7.4.160.0100.00716.71
7.4.140.0090.01117.86
7.4.130.0120.00616.85
7.4.120.0080.01016.67
7.4.110.0100.00716.85
7.4.100.0070.01116.82
7.4.90.0130.00816.61
7.4.80.0330.01519.39
7.4.70.0070.01116.56
7.4.60.0070.01016.61
7.4.50.0120.00316.64
7.4.40.0040.01516.44
7.4.10.0090.01015.21
7.4.00.0040.01515.30
7.3.330.0000.00613.37
7.3.320.0030.00313.54
7.3.310.0070.00016.55
7.3.300.0000.00716.39
7.3.290.0000.00716.45
7.3.280.0080.01016.55
7.3.260.0140.00716.70
7.3.240.0070.01316.68
7.3.230.0120.00716.51
7.3.210.0030.01716.95
7.3.200.0070.01116.79
7.3.190.0090.00916.60
7.3.180.0100.01016.67
7.3.170.0090.01216.77
7.3.160.0040.01316.76
7.3.130.0100.00715.15
7.3.120.0070.01115.20
7.3.110.0090.00915.28
7.3.100.0090.00915.41
7.3.90.0000.01415.33
7.3.80.0090.00315.11
7.3.70.0040.01114.92
7.3.60.0030.01315.14
7.3.50.0060.00614.85
7.3.40.0060.00815.10
7.3.30.0030.00615.13
7.3.20.0110.00416.74
7.3.10.0060.00316.78
7.3.00.0000.00916.82
7.2.330.0060.01316.79
7.2.320.0110.01116.98
7.2.310.0040.01516.75
7.2.300.0080.00816.97
7.2.290.0150.00916.89
7.2.260.0180.00015.48
7.2.250.0100.00714.88
7.2.240.0110.00415.43
7.2.230.0130.00315.04
7.2.220.0060.00615.25
7.2.210.0000.00915.45
7.2.200.0110.00615.54
7.2.190.0070.00415.32
7.2.180.0040.00715.15
7.2.170.0070.01015.07
7.2.160.0110.00015.40
7.2.150.0050.00516.77
7.2.140.0030.00717.26
7.2.130.0000.01417.08
7.2.120.0000.01017.21
7.2.110.0030.01017.16
7.2.100.0030.00917.09
7.2.90.0060.01017.21
7.2.80.0070.01117.13
7.2.70.0060.00917.14
7.2.60.0120.00317.23
7.2.50.0030.01316.97
7.2.40.0070.00717.09
7.2.30.0040.01417.22
7.2.20.0050.00517.11
7.2.10.0030.01017.12
7.2.00.0160.00316.99
7.1.330.0060.00915.57
7.1.320.0000.01216.18
7.1.310.0090.00316.14
7.1.300.0070.00316.05
7.1.290.0000.01116.04
7.1.280.0060.00816.07
7.1.270.0100.00316.03
7.1.260.0040.00715.80
7.1.250.0030.00615.78
7.1.240.0040.01115.93
7.1.230.0080.00015.91
7.1.220.0000.01315.96
7.1.210.0040.01115.85
7.1.200.0030.01616.05
7.1.190.0040.00816.05
7.1.180.0070.00716.08
7.1.170.0040.00716.19
7.1.160.0100.00315.75
7.1.150.0000.01115.92
7.1.140.0110.00316.01
7.1.130.0000.01415.89
7.1.120.0000.01015.95
7.1.110.0110.00316.18
7.1.100.0140.00315.93
7.1.90.0090.00616.02
7.1.80.0030.01315.93
7.1.70.0100.00716.00
7.1.60.0090.00315.87
7.1.50.0060.00915.82
7.1.40.0080.00315.88
7.1.30.0060.01216.08
7.1.20.0030.01515.73
7.1.10.0000.01816.18
7.1.00.0040.01115.78
7.0.330.0040.00415.71
7.0.320.0110.00415.63
7.0.310.0110.00015.59
7.0.300.0070.00315.32
7.0.290.0030.01015.68
7.0.280.0090.00615.42
7.0.270.0030.01315.61
7.0.260.0080.00515.63
7.0.250.0030.01015.75
7.0.240.0070.00715.80
7.0.230.0100.00715.31
7.0.220.0000.01215.75
7.0.210.0030.00715.65
7.0.200.0030.01015.39
7.0.190.0030.00615.57
7.0.180.0000.01115.66
7.0.170.0040.01115.45
7.0.160.0070.00315.73
7.0.150.0040.01415.45
7.0.140.0070.00415.61
7.0.130.0090.00615.37
7.0.120.0100.00315.54
7.0.110.0030.00915.56
7.0.100.0030.01615.41
7.0.90.0030.00715.80
7.0.80.0070.00715.81
7.0.70.0030.01115.82
7.0.60.0040.01115.76
7.0.50.0090.00415.80
7.0.40.0040.00713.81
7.0.30.0030.00613.80
7.0.20.0080.00313.68
7.0.10.0030.01413.44
7.0.00.0030.01013.64
5.6.400.0040.00814.72
5.6.390.0110.00714.18
5.6.380.0030.01214.30
5.6.370.0090.00614.53
5.6.360.0070.00714.50
5.6.350.0070.01014.41
5.6.340.0030.00914.59
5.6.330.0060.01314.54
5.6.320.0060.00614.48
5.6.310.0050.00514.50
5.6.300.0130.00714.86
5.6.290.0030.00914.68
5.6.280.0070.00314.51
5.6.270.0110.00714.58
5.6.260.0030.01714.79
5.6.250.0110.00014.49
5.6.240.0070.00714.70
5.6.230.0000.01314.70
5.6.220.0070.00714.30
5.6.210.0060.00914.51
5.6.200.0130.00314.34
5.6.190.0030.00714.63
5.6.180.0000.01514.49
5.6.170.0080.00814.54
5.6.160.0090.00914.36
5.6.150.0060.01214.45
5.6.140.0090.00014.80
5.6.130.0110.00314.55
5.6.120.0090.00614.57
5.6.110.0040.00414.57
5.6.100.0110.00414.33
5.6.90.0000.01514.17
5.6.80.0000.00914.55
5.6.70.0030.01214.33
5.6.60.0030.01014.41
5.6.50.0030.01014.70
5.6.40.0000.01014.54
5.6.30.0070.00714.37
5.6.20.0100.00714.41
5.6.10.0030.01014.59
5.6.00.0000.00814.65

preferences:
47.26 ms | 400 KiB | 5 Q