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.5.10.0100.00619.86
8.5.00.0120.01019.94
8.4.150.0020.00014.05
8.4.140.0250.00817.33
8.4.130.0280.00817.75
8.4.120.0290.01018.46
8.4.110.0310.01018.25
8.4.100.0320.00717.42
8.4.90.0260.00917.68
8.4.80.0260.00817.81
8.4.70.0260.00817.86
8.4.60.0240.00717.65
8.4.50.0270.00717.52
8.4.40.0310.00717.33
8.4.30.0290.00717.43
8.4.20.0260.00717.48
8.4.10.0210.00617.41
8.3.280.0100.00920.00
8.3.270.0230.00816.42
8.3.260.0260.00516.49
8.3.250.0220.00617.72
8.3.240.0210.00516.50
8.3.230.0220.00616.35
8.3.220.0180.00616.97
8.3.210.0180.00616.51
8.3.200.0210.00516.49
8.3.190.0200.00616.82
8.3.180.0220.00616.77
8.3.170.0250.00716.38
8.3.160.0290.00717.02
8.3.150.0280.00716.75
8.3.140.0250.00717.00
8.3.130.0250.00616.44
8.3.120.0220.00716.81
8.3.110.0260.00916.66
8.3.100.0310.00716.49
8.3.90.0300.00817.31
8.3.80.0300.00817.47
8.3.70.0310.00817.45
8.3.60.0320.00617.54
8.3.50.0280.00817.90
8.3.40.0230.00818.57
8.3.30.0210.00718.77
8.3.20.0200.00819.53
8.3.10.0200.00819.80
8.3.00.0140.00719.49
8.2.290.0170.00617.39
8.2.280.0240.00716.70
8.2.270.0270.00716.46
8.2.260.0260.00616.53
8.2.250.0250.00516.40
8.2.240.0240.00616.40
8.2.230.0230.00716.82
8.2.220.0230.00616.67
8.2.210.0210.00617.78
8.2.200.0220.00717.36
8.2.190.0240.00517.33
8.2.180.0210.00617.35
8.2.170.0210.00618.58
8.2.160.0210.00719.21
8.2.150.0220.00719.22
8.2.140.0210.00719.69
8.2.130.0210.00619.73
8.2.120.0220.00719.37
8.2.110.0200.00719.59
8.2.100.0200.00819.28
8.2.90.0220.00719.04
8.2.80.0220.00719.03
8.2.70.0190.00725.81
8.2.60.0190.00625.49
8.2.50.0200.00625.37
8.2.40.0170.00624.64
8.2.30.0160.00624.00
8.2.20.0150.00623.79
8.2.10.0170.00523.57
8.2.00.0150.00723.56
8.1.330.0190.00717.35
8.1.320.0220.00616.04
8.1.310.0250.00516.10
8.1.300.0220.00716.25
8.1.290.0250.00717.13
8.1.280.0250.00817.51
8.1.270.0220.00719.88
8.1.260.0210.00719.92
8.1.250.0220.00720.04
8.1.240.0190.00619.12
8.1.230.0200.00718.91
8.1.220.0190.00519.00
8.1.210.0200.00619.00
8.1.200.0180.00625.66
8.1.190.0180.00625.17
8.1.180.0170.00625.02
8.1.170.0180.00624.60
8.1.160.0160.00623.88
8.1.150.0150.00723.72
8.1.140.0160.00623.50
8.1.130.0150.00623.31
8.1.120.0150.00623.14
8.1.110.0130.00622.43
8.1.100.0140.00622.54
8.1.90.0140.00622.37
8.1.80.0150.00522.35
8.1.70.0140.00622.20
8.1.60.0150.00622.21
8.1.50.0150.00521.60
8.1.40.0140.00621.43
8.1.30.0150.00621.42
8.1.20.0150.00521.32
8.1.10.0150.00621.14
8.1.00.0150.00621.06
8.0.300.0210.00518.40
8.0.290.0210.00625.16
8.0.280.0180.00623.52
8.0.270.0150.00723.15
8.0.260.0180.00622.83
8.0.250.0180.00522.71
8.0.240.0170.00522.10
8.0.230.0160.00622.00
8.0.220.0160.00621.88
8.0.210.0160.00621.75
8.0.200.0160.00521.74
8.0.190.0160.00521.63
8.0.180.0150.00521.07
8.0.170.0150.00520.79
8.0.160.0150.00520.75
8.0.150.0150.00620.56
8.0.140.0150.00620.50
8.0.130.0150.00620.33
8.0.120.0160.00620.23
8.0.110.0150.00520.21
8.0.100.0150.00520.02
8.0.90.0150.00519.94
8.0.80.0150.00519.90
8.0.70.0130.00519.92
8.0.60.0140.00519.88
8.0.50.0130.00619.87
8.0.30.0120.00619.44
8.0.20.0140.00619.48
8.0.10.0130.00619.47
8.0.00.0110.00619.48
7.4.330.0150.00522.29
7.4.320.0170.00521.91
7.4.300.0160.00521.58
7.4.290.0150.00520.89
7.4.280.0160.00520.50
7.4.270.0160.00520.39
7.4.260.0160.00520.22
7.4.250.0150.00520.08
7.4.240.0140.00520.00
7.4.230.0160.00419.84
7.4.220.0140.00419.80
7.4.210.0140.00519.67
7.4.200.0140.00519.74
7.4.190.0140.00519.74
7.4.180.0140.00519.79
7.4.160.0130.00619.32
7.4.150.0130.00619.25
7.4.140.0130.00619.15
7.4.130.0130.00618.92
7.4.120.0130.00618.90
7.4.110.0140.00618.88
7.4.100.0130.00618.87
7.4.90.0130.00618.78
7.4.80.0130.00618.75
7.4.70.0130.00618.69
7.4.60.0130.00618.57
7.4.50.0120.00718.49
7.4.40.0120.00618.46
7.4.30.0130.00618.45
7.4.20.0130.00618.41
7.4.10.0130.00618.36
7.4.00.0120.00618.37
7.3.330.0160.00520.01
7.3.320.0160.00519.94
7.3.310.0150.00519.82
7.3.300.0140.00519.71
7.3.290.0150.00519.60
7.3.280.0140.00519.34
7.3.270.0140.00519.08
7.3.260.0140.00518.99
7.3.250.0140.00618.87
7.3.240.0140.00618.76
7.3.230.0140.00618.77
7.3.220.0150.00618.71
7.3.210.0150.00618.65
7.3.200.0140.00618.63
7.3.190.0150.00618.57
7.3.180.0150.00618.45
7.3.170.0140.00618.45
7.3.160.0140.00618.37
7.3.150.0140.00618.33
7.3.140.0140.00618.33
7.3.130.0140.00618.23
7.3.120.0130.00718.21
7.3.110.0130.00718.17
7.3.100.0130.00718.06
7.3.90.0130.00618.18
7.3.80.0130.00718.03
7.3.70.0130.00618.08
7.3.60.0130.00617.98
7.3.50.0130.00717.90
7.3.40.0130.00617.86
7.3.30.0120.00717.83
7.3.20.0160.00718.45
7.3.10.0160.00618.38
7.3.00.0150.00618.37
7.2.340.0150.00618.84
7.2.330.0160.00618.72
7.2.320.0160.00618.68
7.2.310.0150.00618.52
7.2.300.0150.00718.52
7.2.290.0150.00718.43
7.2.280.0150.00718.40
7.2.270.0150.00718.38
7.2.260.0150.00618.31
7.2.250.0150.00718.30
7.2.240.0140.00718.27
7.2.230.0140.00718.15
7.2.220.0140.00718.12
7.2.210.0140.00718.09
7.2.200.0150.00718.15
7.2.190.0140.00718.01
7.2.180.0140.00717.92
7.2.170.0130.00717.92
7.2.160.0130.00717.93
7.2.150.0180.00718.59
7.2.140.0160.00718.56
7.2.130.0150.00718.59
7.2.120.0170.00718.55
7.2.110.0170.00718.43
7.2.100.0190.00718.39
7.2.90.0180.00718.33
7.2.80.0180.00718.34
7.2.70.0170.00718.37
7.2.60.0180.00718.37
7.2.50.0170.00718.36
7.2.40.0180.00618.39
7.2.30.0180.00718.37
7.2.20.0180.00718.41
7.2.10.0180.00818.43
7.2.00.0170.00718.43
7.1.330.0160.00718.21
7.1.320.0170.00618.01
7.1.310.0150.00617.99
7.1.300.0160.00617.84
7.1.290.0160.00717.84
7.1.280.0160.00617.74
7.1.270.0190.00717.74
7.1.260.0170.00617.69
7.1.250.0170.00717.61
7.1.240.0170.00717.57
7.1.230.0200.00617.51
7.1.220.0200.00717.45
7.1.210.0210.00617.44
7.1.200.0190.00717.48
7.1.190.0210.00617.47
7.1.180.0180.00717.44
7.1.170.0180.00617.46
7.1.160.0190.00717.46
7.1.150.0200.00617.43
7.1.140.0200.00617.43
7.1.130.0190.00617.44
7.1.120.0180.00717.45
7.1.110.0180.00717.46
7.1.100.0180.00717.46
7.1.90.0190.00717.47
7.1.80.0190.00617.51
7.1.70.0180.00717.41
7.1.60.0190.00718.13
7.1.50.0190.00618.13
7.1.40.0190.00718.11
7.1.30.0190.00718.13
7.1.20.0200.00718.11
7.1.10.0180.00617.48
7.1.00.0170.00617.45
7.0.330.0190.00617.33
7.0.320.0180.00617.30
7.0.310.0210.00717.16
7.0.300.0200.00617.16
7.0.290.0190.00617.15
7.0.280.0190.00617.14
7.0.270.0180.00717.14
7.0.260.0180.00617.16
7.0.250.0190.00617.25
7.0.240.0180.00717.26
7.0.230.0170.00717.28
7.0.220.0180.00717.24
7.0.210.0180.00617.24
7.0.200.0180.00617.23
7.0.190.0210.00617.24
7.0.180.0180.00717.25
7.0.170.0180.00717.26
7.0.160.0180.00617.22
7.0.150.0180.00617.19
7.0.140.0180.00617.19
7.0.130.0180.00617.24
7.0.120.0180.00717.24
7.0.110.0170.00617.23
7.0.100.0180.00617.21
7.0.90.0170.00717.17
7.0.80.0170.00617.16
7.0.70.0170.00717.17
7.0.60.0180.00617.17
7.0.50.0170.00617.15
7.0.40.0170.00717.20
7.0.30.0170.00617.20
7.0.20.0170.00617.16
7.0.10.0180.00617.18
7.0.00.0180.00617.15
5.6.400.0140.00717.33
5.6.390.0150.00717.33
5.6.380.0140.00717.14
5.6.370.0140.00817.16
5.6.360.0140.00817.13
5.6.350.0140.00717.14
5.6.340.0140.00817.14
5.6.330.0140.00717.15
5.6.320.0140.00717.15
5.6.310.0140.00717.15
5.6.300.0140.00817.08
5.6.290.0140.00817.13
5.6.280.0140.00817.14
5.6.270.0140.00717.14
5.6.260.0130.00817.13
5.6.250.0140.00717.10
5.6.240.0130.00817.13
5.6.230.0140.00717.16
5.6.220.0140.00717.15
5.6.210.0140.00717.14
5.6.200.0140.00717.16
5.6.190.0140.00717.18
5.6.180.0140.00717.15
5.6.170.0140.00817.16
5.6.160.0140.00717.17
5.6.150.0140.00717.17
5.6.140.0140.00717.15
5.6.130.0140.00717.16
5.6.120.0140.00717.14
5.6.110.0150.00717.11
5.6.100.0140.00817.11
5.6.90.0140.00717.12
5.6.80.0140.00717.10
5.6.70.0140.00717.14
5.6.60.0130.00817.14
5.6.50.0130.00717.10
5.6.40.0140.00717.10
5.6.30.0130.00717.08
5.6.20.0130.00717.07
5.6.10.0140.00717.06
5.6.00.0140.00717.07
5.5.380.0140.00816.96
5.5.370.0150.00716.95
5.5.360.0150.00716.89
5.5.350.0140.00716.88
5.5.340.0150.00716.89
5.5.330.0140.00716.89
5.5.320.0140.00716.88
5.5.310.0150.00616.89
5.5.300.0150.00716.89
5.5.290.0150.00716.88
5.5.280.0140.00716.87
5.5.270.0150.00716.87
5.5.260.0140.00716.86
5.5.250.0150.00716.91
5.5.240.0140.00716.90
5.5.230.0150.00716.87
5.5.220.0140.00716.87
5.5.210.0140.00716.92
5.5.200.0140.00716.82
5.5.190.0140.00716.81
5.5.180.0140.00716.82
5.5.170.0140.00716.96
5.5.160.0140.00716.84
5.5.150.0140.00716.82
5.5.140.0140.00716.79
5.5.130.0140.00716.79
5.5.120.0140.00716.79
5.5.110.0140.00716.79
5.5.100.0140.00716.89
5.5.90.0130.00716.89
5.5.80.0140.00716.88
5.5.70.0140.00716.92
5.5.60.0140.00716.89
5.5.50.0130.00716.90
5.5.40.0130.00816.90
5.5.30.0130.00716.90
5.5.20.0140.00716.92
5.5.10.0140.00716.85
5.5.00.0140.00716.82

preferences:
170.71 ms | 403 KiB | 5 Q