3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decodeSecret($secret) { return base64_decode(strrev(hex2bin($secret))); } function encodeSecret($secret) { return bin2hex(strrev(base64_encode($secret))); } //$secret = "3d3d516343746d4d6d6c315669563362"; echo base64_decode(strrev(hex2bin('3d3d516343746d4d6d6c315669563362'))); //echo $s2 = base64_decode($secret); //echo $s3 = strrev($s2); //echo hex2bin($s3); echo "\n----------\n"; echo encodeSecret("TEST");

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.0150.00018.30
8.3.50.0070.00718.32
8.3.40.0090.01019.84
8.3.30.0120.00720.19
8.3.20.0100.00722.63
8.3.10.0100.00722.92
8.3.00.0120.00721.23
8.2.180.0140.00416.50
8.2.170.0080.00919.14
8.2.160.0100.00821.36
8.2.150.0100.00821.41
8.2.140.0100.00722.43
8.2.130.0100.00722.55
8.2.120.0090.00821.41
8.2.110.0100.00821.56
8.2.100.0120.00820.75
8.2.90.0140.00819.96
8.2.80.0120.00720.07
8.2.70.0120.00732.73
8.2.60.0130.00631.52
8.2.50.0140.00531.19
8.2.40.0120.00528.99
8.2.30.0110.00627.39
8.2.20.0100.00526.80
8.2.10.0120.00526.43
8.2.00.0100.00626.42
8.1.280.0080.00825.92
8.1.270.0080.00723.31
8.1.260.0090.00623.41
8.1.250.0080.00623.75
8.1.240.0090.00620.68
8.1.230.0130.00520.15
8.1.220.0100.00620.15
8.1.210.0130.00520.34
8.1.200.0120.00532.69
8.1.190.0110.00531.35
8.1.180.0120.00430.80
8.1.170.0110.00529.21
8.1.160.0110.00527.29
8.1.150.0100.00626.80
8.1.140.0100.00626.42
8.1.130.0110.00525.95
8.1.120.0110.00525.58
8.1.110.0090.00624.23
8.1.100.0100.00624.37
8.1.90.0100.00624.11
8.1.80.0110.00524.01
8.1.70.0110.00523.78
8.1.60.0120.00523.69
8.1.50.0120.00522.67
8.1.40.0110.00622.37
8.1.30.0120.00622.31
8.1.20.0130.00522.16
8.1.10.0130.00621.93
8.1.00.0120.00621.89
8.0.300.0140.00519.60
8.0.290.0160.00632.13
8.0.280.0130.00527.02
8.0.270.0110.00626.18
8.0.260.0130.00625.52
8.0.250.0130.00525.17
8.0.240.0140.00423.97
8.0.230.0130.00523.82
8.0.220.0120.00523.64
8.0.210.0120.00523.39
8.0.200.0120.00523.33
8.0.190.0130.00423.13
8.0.180.0120.00422.17
8.0.170.0120.00521.75
8.0.160.0120.00521.65
8.0.150.0120.00521.40
8.0.140.0120.00621.32
8.0.130.0120.00621.07
8.0.120.0130.00620.92
8.0.110.0130.00520.86
8.0.100.0120.00420.62
8.0.90.0120.00520.51
8.0.80.0120.00520.44
8.0.70.0100.00520.47
8.0.60.0110.00520.42
8.0.50.0110.00520.40
8.0.30.0100.00619.79
8.0.20.0110.00619.83
8.0.10.0110.00619.81
8.0.00.0090.00619.78
7.4.330.0100.00424.75
7.4.320.0130.00523.88
7.4.300.0130.00523.20
7.4.290.0130.00522.01
7.4.280.0140.00521.41
7.4.270.0140.00421.23
7.4.260.0140.00420.97
7.4.250.0130.00520.77
7.4.240.0120.00520.66
7.4.230.0130.00420.45
7.4.220.0120.00420.38
7.4.210.0120.00420.19
7.4.200.0120.00420.29
7.4.190.0110.00520.28
7.4.180.0120.00520.32
7.4.160.0110.00619.70
7.4.150.0110.00619.62
7.4.140.0110.00619.49
7.4.130.0110.00619.20
7.4.120.0120.00619.18
7.4.110.0120.00619.15
7.4.100.0120.00619.13
7.4.90.0120.00619.03
7.4.80.0120.00618.99
7.4.70.0120.00618.92
7.4.60.0120.00618.76
7.4.50.0110.00718.68
7.4.40.0110.00618.63
7.4.30.0120.00618.62
7.4.20.0120.00618.57
7.4.10.0120.00618.50
7.4.00.0110.00618.52
7.3.330.0140.00520.75
7.3.320.0140.00520.64
7.3.310.0140.00420.47
7.3.300.0120.00520.31
7.3.290.0130.00420.12
7.3.280.0130.00519.78
7.3.270.0130.00519.44
7.3.260.0130.00519.32
7.3.250.0120.00619.15
7.3.240.0120.00619.03
7.3.230.0130.00619.04
7.3.220.0130.00618.96
7.3.210.0130.00618.90
7.3.200.0130.00618.86
7.3.190.0130.00618.79
7.3.180.0130.00618.64
7.3.170.0120.00618.64
7.3.160.0120.00618.54
7.3.150.0130.00618.50
7.3.140.0120.00618.49
7.3.130.0120.00618.38
7.3.120.0120.00718.35
7.3.110.0110.00718.31
7.3.100.0120.00718.18
7.3.90.0120.00618.29
7.3.80.0110.00718.15
7.3.70.0120.00618.19
7.3.60.0120.00618.07
7.3.50.0120.00717.97
7.3.40.0120.00617.93
7.3.30.0110.00717.91
7.3.20.0150.00718.46
7.3.10.0150.00618.39
7.3.00.0140.00718.38
7.2.340.0140.00619.11
7.2.330.0150.00618.96
7.2.320.0140.00618.92
7.2.310.0140.00618.71
7.2.300.0140.00718.72
7.2.290.0140.00718.61
7.2.280.0130.00718.57
7.2.270.0140.00718.54
7.2.260.0140.00718.46
7.2.250.0140.00718.44
7.2.240.0130.00718.42
7.2.230.0130.00718.28
7.2.220.0130.00718.24
7.2.210.0130.00718.21
7.2.200.0140.00718.26
7.2.190.0130.00718.10
7.2.180.0130.00718.00
7.2.170.0120.00718.00
7.2.160.0130.00718.00
7.2.150.0180.00718.61
7.2.140.0150.00718.57
7.2.130.0150.00718.60
7.2.120.0160.00718.55
7.2.110.0160.00718.42
7.2.100.0190.00718.38
7.2.90.0180.00718.32
7.2.80.0170.00718.33
7.2.70.0160.00718.36
7.2.60.0170.00718.35
7.2.50.0170.00718.35
7.2.40.0170.00618.38
7.2.30.0180.00718.36
7.2.20.0180.00718.39
7.2.10.0180.00818.42
7.2.00.0170.00718.40
7.1.330.0150.00718.27
7.1.320.0160.00618.05
7.1.310.0150.00618.04
7.1.300.0160.00617.87
7.1.290.0150.00617.86
7.1.280.0160.00617.75
7.1.270.0190.00717.75
7.1.260.0170.00717.70
7.1.250.0160.00717.61
7.1.240.0170.00717.58
7.1.230.0200.00617.50
7.1.220.0200.00717.43
7.1.210.0200.00617.42
7.1.200.0190.00717.45
7.1.190.0210.00617.46
7.1.180.0180.00717.42
7.1.170.0180.00617.45
7.1.160.0190.00717.44
7.1.150.0190.00617.42
7.1.140.0200.00617.42
7.1.130.0190.00617.43
7.1.120.0170.00717.43
7.1.110.0170.00717.45
7.1.100.0180.00717.45
7.1.90.0180.00717.46
7.1.80.0180.00717.50
7.1.70.0180.00717.40
7.1.60.0190.00718.17
7.1.50.0190.00618.18
7.1.40.0190.00718.16
7.1.30.0180.00718.17
7.1.20.0200.00718.15
7.1.10.0170.00617.46
7.1.00.0170.00617.43
7.0.330.0180.00717.33
7.0.320.0180.00617.29
7.0.310.0200.00717.15
7.0.300.0200.00617.15
7.0.290.0190.00617.14
7.0.280.0180.00617.13
7.0.270.0180.00717.12
7.0.260.0180.00617.14
7.0.250.0180.00617.22
7.0.240.0170.00717.24
7.0.230.0170.00717.26
7.0.220.0170.00717.22
7.0.210.0170.00617.22
7.0.200.0180.00617.21
7.0.190.0210.00617.22
7.0.180.0180.00717.23
7.0.170.0180.00717.24
7.0.160.0170.00717.20
7.0.150.0170.00617.18
7.0.140.0180.00617.17
7.0.130.0180.00717.22
7.0.120.0170.00717.22
7.0.110.0170.00617.21
7.0.100.0180.00617.19
7.0.90.0170.00717.16
7.0.80.0160.00617.15
7.0.70.0170.00717.15
7.0.60.0170.00617.16
7.0.50.0170.00617.15
7.0.40.0160.00717.18
7.0.30.0160.00617.19
7.0.20.0170.00617.14
7.0.10.0180.00617.18
7.0.00.0170.00617.15
5.6.400.0140.00717.38
5.6.390.0140.00717.37
5.6.380.0130.00717.17
5.6.370.0130.00817.19
5.6.360.0140.00817.16
5.6.350.0140.00717.17
5.6.340.0130.00817.17
5.6.330.0130.00717.18
5.6.320.0130.00817.18
5.6.310.0130.00817.18
5.6.300.0130.00817.12
5.6.290.0130.00817.16
5.6.280.0130.00817.17
5.6.270.0130.00717.17
5.6.260.0130.00817.16
5.6.250.0130.00717.13
5.6.240.0130.00817.16
5.6.230.0130.00717.18
5.6.220.0140.00717.18
5.6.210.0140.00717.18
5.6.200.0140.00717.19
5.6.190.0130.00717.21
5.6.180.0130.00717.18
5.6.170.0130.00817.19
5.6.160.0140.00717.20
5.6.150.0130.00817.20
5.6.140.0140.00717.18
5.6.130.0130.00717.19
5.6.120.0130.00817.17
5.6.110.0140.00717.14
5.6.100.0130.00817.14
5.6.90.0130.00717.15
5.6.80.0130.00717.12
5.6.70.0130.00717.17
5.6.60.0120.00817.16
5.6.50.0130.00717.13
5.6.40.0130.00717.12
5.6.30.0120.00717.11
5.6.20.0120.00717.09
5.6.10.0130.00717.09
5.6.00.0130.00717.09
5.5.380.0130.00816.96
5.5.370.0140.00716.96
5.5.360.0140.00716.90
5.5.350.0140.00716.89
5.5.340.0140.00716.89
5.5.330.0140.00716.90
5.5.320.0140.00716.89
5.5.310.0140.00716.90
5.5.300.0140.00716.90
5.5.290.0140.00716.89
5.5.280.0140.00716.88
5.5.270.0140.00816.88
5.5.260.0140.00716.87
5.5.250.0140.00716.91
5.5.240.0140.00716.91
5.5.230.0140.00716.88
5.5.220.0130.00716.88
5.5.210.0130.00716.93
5.5.200.0130.00716.82
5.5.190.0130.00716.82
5.5.180.0130.00716.83
5.5.170.0130.00716.98
5.5.160.0130.00716.85
5.5.150.0130.00716.83
5.5.140.0140.00716.80
5.5.130.0140.00716.80
5.5.120.0130.00716.80
5.5.110.0140.00716.80
5.5.100.0130.00716.90
5.5.90.0130.00716.89
5.5.80.0130.00716.88
5.5.70.0130.00716.93
5.5.60.0130.00716.90
5.5.50.0130.00816.91
5.5.40.0130.00816.91
5.5.30.0130.00716.90
5.5.20.0130.00816.93
5.5.10.0130.00716.85
5.5.00.0130.00716.83

preferences:
68.85 ms | 400 KiB | 5 Q