3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('PHP_EOL')) { define('PHP_EOL', "\r\n"); } $original = "YWlFLVEZZUFNaWlhPQ01ZT0lLWU5HTFJQVFNCRUJZVA="; $raw_data = base64_decode($original); print 'Raw key length (used to encode/decode)' . PHP_EOL; print strlen($raw_data) . PHP_EOL; print PHP_EOL; print 'Raw key in hexidecimal format (0-9 a-f)' . PHP_EOL; $hex_key = bin2hex($raw_data); print $hex_key . PHP_EOL; print PHP_EOL; print 'Hexidecimal key length' . PHP_EOL; print strlen($hex_key) . PHP_EOL;

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.01318.30
8.3.50.0090.00821.15
8.3.40.0040.01118.42
8.3.30.0100.00320.34
8.3.20.0070.00020.25
8.3.10.0000.00821.97
8.3.00.0040.00422.43
8.2.180.0070.00716.50
8.2.170.0110.00422.96
8.2.160.0080.00620.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0000.00819.68
8.2.110.0000.00822.12
8.2.100.0000.01117.91
8.2.90.0040.00417.75
8.2.80.0000.00818.97
8.2.70.0000.00817.80
8.2.60.0000.00817.63
8.2.50.0080.00017.63
8.2.40.0030.00519.33
8.2.30.0000.00817.73
8.2.20.0050.00217.63
8.2.10.0000.00717.67
8.2.00.0060.00317.67
8.1.280.0070.00725.92
8.1.270.0100.01020.23
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.82
8.1.230.0070.00419.10
8.1.220.0080.00017.89
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0000.00718.83
8.1.160.0000.00818.75
8.1.150.0000.00718.63
8.1.140.0000.00717.31
8.1.130.0000.00617.73
8.1.120.0030.00317.46
8.1.110.0090.00017.40
8.1.100.0000.00817.44
8.1.90.0000.00717.43
8.1.80.0040.00417.41
8.1.70.0030.00317.48
8.1.60.0050.00317.46
8.1.50.0000.00717.40
8.1.40.0040.00417.48
8.1.30.0040.00417.53
8.1.20.0000.00817.50
8.1.10.0040.00417.42
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0080.00018.01
8.0.270.0000.00717.98
8.0.260.0040.00418.42
8.0.250.0060.00016.90
8.0.240.0000.00717.00
8.0.230.0000.00716.97
8.0.220.0000.00716.98
8.0.210.0030.00316.95
8.0.200.0030.00316.92
8.0.190.0000.00917.09
8.0.180.0000.00816.95
8.0.170.0000.00716.95
8.0.160.0070.00016.88
8.0.150.0070.00016.88
8.0.140.0030.00316.90
8.0.130.0030.00313.33
8.0.120.0000.00716.91
8.0.110.0040.00416.97
8.0.100.0040.00416.93
8.0.90.0000.00816.84
8.0.80.0090.01216.98
8.0.70.0030.00416.91
8.0.60.0050.00216.91
8.0.50.0070.00016.92
8.0.30.0120.00717.10
8.0.20.0020.01617.40
8.0.10.0000.00717.00
8.0.00.0150.00816.64
7.4.330.0000.00515.00
7.4.320.0060.00016.36
7.4.300.0040.00416.35
7.4.290.0000.00716.52
7.4.280.0070.00016.50
7.4.270.0040.00416.47
7.4.260.0080.00016.40
7.4.250.0050.00316.25
7.4.240.0040.00416.54
7.4.230.0070.00016.41
7.4.220.0060.01316.56
7.4.210.0110.00616.49
7.4.200.0030.00316.44
7.4.190.0000.00716.68
7.4.160.0120.00416.39
7.4.150.0100.00717.40
7.4.140.0120.00617.86
7.4.130.0130.00916.46
7.4.120.0070.01016.47
7.4.110.0100.00716.36
7.4.100.0160.00016.46
7.4.90.0100.01616.41
7.4.80.0110.00619.39
7.4.70.0100.00716.51
7.4.60.0130.00316.55
7.4.50.0040.00416.23
7.4.40.0040.01522.77
7.4.30.0000.01616.44
7.4.10.0030.01414.73
7.4.00.0110.00614.65
7.3.330.0050.00013.32
7.3.320.0000.00513.10
7.3.310.0000.00716.28
7.3.300.0080.00016.38
7.3.290.0050.00916.33
7.3.280.0050.01216.40
7.3.270.0030.01317.40
7.3.260.0060.01216.69
7.3.250.0070.01116.48
7.3.240.0080.01316.31
7.3.230.0000.01716.55
7.3.210.0090.00616.33
7.3.200.0130.01219.39
7.3.190.0150.00616.48
7.3.180.0050.01116.76
7.3.170.0080.00816.45
7.3.160.0150.00016.47
7.3.130.0060.01314.57
7.3.120.0070.00914.73
7.3.110.0030.00914.94
7.3.100.0080.00514.73
7.3.90.0090.00514.75
7.3.80.0110.00514.95
7.3.70.0030.00714.88
7.3.60.0060.01014.85
7.3.50.0040.00814.68
7.3.40.0040.00914.75
7.3.30.0030.01014.79
7.3.20.0040.00716.64
7.3.10.0040.00816.73
7.3.00.0060.00516.77
7.2.330.0090.00916.80
7.2.320.0110.01116.59
7.2.310.0120.00916.61
7.2.300.0080.00816.70
7.2.290.0060.01316.57
7.2.260.0160.00314.82
7.2.250.0030.01415.04
7.2.240.0090.00714.95
7.2.230.0030.00915.05
7.2.220.0040.01315.21
7.2.210.0080.00615.07
7.2.200.0030.01315.00
7.2.190.0020.01114.96
7.2.180.0050.00815.01
7.2.170.0030.01215.10
7.2.160.0050.01214.96
7.2.150.0090.00316.78
7.2.140.0000.01316.89
7.2.130.0060.00516.97
7.2.120.0060.00916.92
7.2.110.0060.00616.93
7.2.100.0020.01216.73
7.2.90.0050.00816.75
7.2.80.0050.01116.92
7.2.70.0050.00917.04
7.2.60.0030.00917.07
7.2.50.0080.00716.93
7.2.40.0050.01017.04
7.2.30.0060.01016.78
7.2.20.0050.00816.97
7.2.10.0080.00816.91
7.2.00.0030.00916.68
7.1.330.0050.00915.76
7.1.320.0040.00915.74
7.1.310.0030.00615.71
7.1.300.0050.00915.61
7.1.290.0060.00715.59
7.1.280.0050.00515.62
7.1.270.0040.01015.77
7.1.260.0080.00515.79
7.1.250.0040.00915.80
7.1.240.0030.00915.75
7.1.230.0030.00515.67
7.1.220.0100.00315.55
7.1.210.0090.00015.70
7.1.200.0030.01015.68
7.1.190.0030.00615.75
7.1.180.0000.01415.87
7.1.170.0040.00415.80
7.1.160.0070.00715.77
7.1.150.0040.00415.79
7.1.140.0040.01115.87
7.1.130.0060.00315.86
7.1.120.0030.00815.58
7.1.110.0000.00815.54
7.1.100.0000.01315.97
7.1.90.0070.00715.64
7.1.80.0030.00915.61
7.1.70.0030.00516.46
7.1.60.0110.00817.60
7.1.50.0020.00916.37
7.1.40.0070.00715.91
7.1.30.0030.00615.97
7.1.20.0040.01215.82
7.1.10.0030.00715.89
7.1.00.0070.01819.01
7.0.330.0040.00815.36
7.0.320.0070.00715.46
7.0.310.0000.00815.39
7.0.300.0120.00015.28
7.0.290.0030.00715.53
7.0.280.0000.00815.50
7.0.270.0000.00715.33
7.0.260.0000.01415.33
7.0.250.0090.00015.39
7.0.240.0090.00615.33
7.0.230.0030.00615.61
7.0.220.0050.00315.45
7.0.210.0040.01115.34
7.0.200.0010.00816.14
7.0.190.0030.01215.55
7.0.180.0070.00315.27
7.0.170.0030.01015.42
7.0.160.0030.00715.02
7.0.150.0090.00615.45
7.0.140.0020.04118.70
7.0.130.0100.00715.31
7.0.120.0080.00814.87
7.0.110.0090.00615.17
7.0.100.0030.01315.31
7.0.90.0030.00815.40
7.0.80.0080.01817.45
7.0.70.0000.02817.54
7.0.60.0170.02217.48
7.0.50.0180.02517.91
7.0.40.0080.02016.60
7.0.30.0080.01716.73
7.0.20.0030.02416.75
7.0.10.0020.02616.73
7.0.00.0010.02116.87
5.6.400.0090.00314.42
5.6.390.0000.01414.18
5.6.380.0040.01114.06
5.6.370.0000.01514.49
5.6.360.0090.00614.29
5.6.350.0000.00914.36
5.6.340.0070.00713.88
5.6.330.0070.00714.31
5.6.320.0030.00614.21
5.6.310.0070.00414.29
5.6.300.0080.00414.55
5.6.290.0090.00614.38
5.6.280.0030.04217.62
5.6.270.0040.01114.25
5.6.260.0070.00714.04
5.6.250.0120.00314.31
5.6.240.0080.00914.42
5.6.230.0030.02717.40
5.6.220.0020.02417.32
5.6.210.0050.02417.40
5.6.200.0050.02317.51
5.6.190.0030.02517.67
5.6.180.0020.02417.73
5.6.170.0060.02117.66
5.6.160.0070.01917.52
5.6.150.0070.01917.58
5.6.140.0070.03417.55
5.6.130.0050.02517.58
5.6.120.0060.02417.65
5.6.110.0020.02717.60
5.6.100.0070.04717.34
5.6.90.0050.04517.52
5.6.80.0030.02617.36
5.6.70.0080.04017.37
5.6.60.0050.04517.25
5.6.50.0050.03517.14
5.6.40.0020.02617.42
5.6.30.0070.03717.27
5.6.20.0100.03317.18
5.6.10.0000.03417.22
5.6.00.0050.02817.31
5.5.380.0080.00614.11
5.5.370.0070.02317.36
5.5.360.0070.01717.33
5.5.350.0070.02517.51
5.5.340.0030.02317.78
5.5.330.0090.02217.63
5.5.320.0090.02217.63
5.5.310.0070.01717.66
5.5.300.0080.02517.55
5.5.290.0050.02317.53
5.5.280.0050.04417.43
5.5.270.0050.03317.47
5.5.260.0020.05017.36
5.5.250.0050.04517.25
5.5.240.0100.03817.19
5.5.230.0050.04317.12
5.5.220.0100.01917.26
5.5.210.0070.02317.11
5.5.200.0040.02517.21
5.5.190.0150.01817.15
5.5.180.0070.04917.11
5.5.170.0040.00413.93
5.5.160.0080.02017.04
5.5.150.0020.03816.90
5.5.140.0030.02117.16
5.5.130.0050.03717.11
5.5.120.0080.02517.23
5.5.110.0000.04717.14
5.5.100.0070.01717.14
5.5.90.0050.02017.21
5.5.80.0030.02216.98
5.5.70.0070.04416.92
5.5.60.0050.02617.25
5.5.50.0050.02917.12
5.5.40.0070.02817.01
5.5.30.0100.01516.98
5.5.20.0080.03516.99
5.5.10.0070.04017.16
5.5.00.0110.04016.95
5.4.450.0030.02214.95
5.4.440.0020.02415.10
5.4.430.0100.03815.22
5.4.420.0070.04015.10
5.4.410.0020.03315.12
5.4.400.0020.04514.88
5.4.390.0020.03314.99
5.4.380.0110.02315.10
5.4.370.0030.02315.00
5.4.360.0030.02315.18
5.4.350.0000.04314.76
5.4.340.0050.02014.90
5.4.330.0070.00311.01
5.4.320.0040.02115.14
5.4.310.0050.02015.02
5.4.300.0030.01815.09
5.4.290.0070.03914.78
5.4.280.0020.04615.11
5.4.270.0070.01814.89
5.4.260.0040.01714.86
5.4.250.0050.01715.09
5.4.240.0030.01914.97
5.4.230.0040.02614.84
5.4.220.0090.01514.95
5.4.210.0070.02814.91
5.4.200.0030.02114.96
5.4.190.0050.01714.92
5.4.180.0050.03214.89
5.4.170.0070.04014.90
5.4.160.0020.04514.96
5.4.150.0030.02914.97
5.4.140.0030.01813.48
5.4.130.0080.02813.55
5.4.120.0040.01713.45
5.4.110.0080.03313.78
5.4.100.0080.03513.55
5.4.90.0060.01513.71
5.4.80.0070.01513.57
5.4.70.0070.03513.68
5.4.60.0040.02513.61
5.4.50.0030.01813.52
5.4.40.0020.01813.67
5.4.30.0050.03613.71
5.4.20.0070.03213.69
5.4.10.0050.02213.55
5.4.00.0000.02313.38
5.3.290.0110.01612.61
5.3.280.0080.03812.46
5.3.270.0010.02612.60
5.3.260.0030.03012.40
5.3.250.0020.03712.45
5.3.240.0030.01912.45
5.3.230.0030.02612.41
5.3.220.0020.03512.29
5.3.210.0030.02412.28
5.3.200.0020.03112.33
5.3.190.0050.04312.51
5.3.180.0040.01812.44
5.3.170.0110.03312.43
5.3.160.0030.03312.45
5.3.150.0050.02112.51
5.3.140.0030.02512.41
5.3.130.0050.02512.38
5.3.120.0030.04012.44
5.3.110.0070.03512.48
5.3.100.0050.02012.18
5.3.90.0060.03712.25
5.3.80.0040.03812.09
5.3.70.0010.04112.18
5.3.60.0000.02612.21
5.3.50.0060.03912.04
5.3.40.0050.02012.11
5.3.30.0020.03512.22
5.3.20.0050.03212.02
5.3.10.0050.02611.89
5.3.00.0000.02111.79
5.2.170.0030.04011.67
5.2.160.0070.02711.67
5.2.150.0130.01711.67
5.2.140.0000.03011.67
5.2.130.0070.06011.67
5.2.120.0070.04711.67
5.2.110.0030.04711.67
5.2.100.0000.02711.67
5.2.90.0030.06311.67
5.2.80.0070.04011.67
5.2.70.0070.05711.67
5.2.60.0030.04011.67
5.2.50.0100.05711.67
5.2.40.0000.04011.67
5.2.30.0030.03011.67
5.2.20.0000.02711.67
5.2.10.0070.04711.67
5.2.00.0030.03011.67
5.1.60.0070.02011.67
5.1.50.0000.02711.67
5.1.40.0000.04011.67
5.1.30.0000.02711.67
5.1.20.0000.02311.67
5.1.10.0000.05311.67
5.1.00.0000.05711.67
5.0.50.0000.04711.67
5.0.40.0030.01311.67
5.0.30.0030.05711.67
5.0.20.0070.04011.67
5.0.10.0070.04011.67
5.0.00.0000.05011.67
4.4.90.0000.03711.67
4.4.80.0000.01311.67
4.4.70.0000.02711.67
4.4.60.0000.01311.67
4.4.50.0030.03311.67
4.4.40.0000.02711.67
4.4.30.0030.01311.67
4.4.20.0100.02711.67
4.4.10.0000.01311.67
4.4.00.0030.05711.67
4.3.110.0000.03011.67
4.3.100.0000.03711.67
4.3.90.0030.03311.67
4.3.80.0000.02711.67
4.3.70.0030.01311.67
4.3.60.0070.03311.67
4.3.50.0000.03011.67
4.3.40.0000.02011.67
4.3.30.0000.01311.67
4.3.20.0000.01311.67
4.3.10.0000.03711.67
4.3.00.0030.03311.67

preferences:
54.73 ms | 401 KiB | 5 Q