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.4.120.0110.01020.65
8.4.110.0260.00819.07
8.4.100.0230.00717.42
8.4.90.0130.00718.17
8.4.80.0160.00717.98
8.4.70.0160.00718.17
8.4.60.0170.00517.78
8.4.50.0220.00617.53
8.4.40.0280.00817.36
8.4.30.0290.00717.40
8.4.20.0250.00617.50
8.4.10.0190.00617.42
8.3.250.0130.00518.77
8.3.240.0120.00616.78
8.3.230.0140.00616.45
8.3.220.0120.00617.33
8.3.210.0130.00516.54
8.3.200.0180.00316.57
8.3.190.0170.00616.94
8.3.180.0200.00616.89
8.3.170.0230.00716.46
8.3.160.0300.00717.26
8.3.150.0290.00616.81
8.3.140.0250.00717.14
8.3.130.0250.00616.50
8.3.120.0220.00716.86
8.3.110.0260.00916.73
8.3.100.0310.00716.50
8.3.90.0300.00817.45
8.3.80.0310.00817.59
8.3.70.0320.00817.57
8.3.60.0320.00717.65
8.3.50.0280.00818.06
8.3.40.0230.00818.68
8.3.30.0210.00818.89
8.3.20.0200.00819.69
8.3.10.0200.00819.97
8.3.00.0140.00719.65
8.2.290.0130.00618.35
8.2.280.0250.00716.93
8.2.270.0280.00816.53
8.2.260.0270.00716.56
8.2.250.0250.00516.48
8.2.240.0240.00616.42
8.2.230.0240.00716.89
8.2.220.0230.00616.72
8.2.210.0210.00617.94
8.2.200.0220.00717.50
8.2.190.0240.00517.48
8.2.180.0210.00717.46
8.2.170.0210.00618.66
8.2.160.0210.00719.34
8.2.150.0220.00719.35
8.2.140.0210.00719.85
8.2.130.0210.00619.89
8.2.120.0220.00719.50
8.2.110.0200.00719.72
8.2.100.0200.00819.39
8.2.90.0220.00719.14
8.2.80.0220.00719.13
8.2.70.0190.00726.21
8.2.60.0190.00625.86
8.2.50.0200.00625.74
8.2.40.0170.00624.94
8.2.30.0160.00624.25
8.2.20.0150.00624.02
8.2.10.0170.00523.79
8.2.00.0150.00723.78
8.1.330.0150.00918.69
8.1.320.0210.00716.17
8.1.310.0250.00516.16
8.1.300.0220.00716.34
8.1.290.0250.00717.27
8.1.280.0250.00817.69
8.1.270.0220.00720.06
8.1.260.0210.00720.11
8.1.250.0220.00720.23
8.1.240.0190.00619.23
8.1.230.0190.00619.01
8.1.220.0190.00519.10
8.1.210.0190.00619.12
8.1.200.0170.00626.07
8.1.190.0180.00625.55
8.1.180.0170.00625.38
8.1.170.0170.00624.91
8.1.160.0160.00624.12
8.1.150.0150.00723.95
8.1.140.0150.00623.72
8.1.130.0150.00523.51
8.1.120.0150.00523.33
8.1.110.0130.00622.58
8.1.100.0130.00622.69
8.1.90.0130.00622.52
8.1.80.0150.00522.49
8.1.70.0140.00622.34
8.1.60.0150.00522.34
8.1.50.0140.00521.70
8.1.40.0140.00621.51
8.1.30.0150.00621.50
8.1.20.0150.00521.41
8.1.10.0150.00621.21
8.1.00.0150.00621.15
8.0.300.0210.00518.51
8.0.290.0200.00625.57
8.0.280.0180.00623.77
8.0.270.0150.00723.38
8.0.260.0170.00623.05
8.0.250.0170.00522.90
8.0.240.0170.00522.26
8.0.230.0150.00522.16
8.0.220.0160.00622.03
8.0.210.0160.00621.89
8.0.200.0150.00521.88
8.0.190.0150.00521.76
8.0.180.0150.00521.17
8.0.170.0150.00520.89
8.0.160.0140.00520.84
8.0.150.0150.00620.65
8.0.140.0150.00620.58
8.0.130.0140.00620.41
8.0.120.0150.00620.30
8.0.110.0150.00520.27
8.0.100.0150.00520.09
8.0.90.0150.00520.01
8.0.80.0140.00519.96
8.0.70.0130.00519.98
8.0.60.0140.00519.94
8.0.50.0130.00619.93
8.0.30.0120.00619.48
8.0.20.0130.00619.52
8.0.10.0130.00619.51
8.0.00.0110.00619.52
7.4.330.0150.00422.49
7.4.320.0160.00522.08
7.4.300.0160.00521.72
7.4.290.0150.00521.00
7.4.280.0160.00520.59
7.4.270.0160.00520.48
7.4.260.0160.00520.30
7.4.250.0150.00520.15
7.4.240.0140.00520.08
7.4.230.0150.00419.92
7.4.220.0140.00419.87
7.4.210.0140.00519.73
7.4.200.0140.00419.80
7.4.190.0140.00519.80
7.4.180.0140.00519.85
7.4.160.0130.00619.37
7.4.150.0130.00619.30
7.4.140.0130.00619.19
7.4.130.0130.00618.96
7.4.120.0130.00618.94
7.4.110.0140.00618.91
7.4.100.0130.00618.91
7.4.90.0130.00618.82
7.4.80.0130.00618.78
7.4.70.0130.00618.73
7.4.60.0130.00618.60
7.4.50.0120.00718.52
7.4.40.0120.00618.48
7.4.30.0130.00618.48
7.4.20.0130.00618.44
7.4.10.0130.00618.38
7.4.00.0120.00618.40
7.3.330.0160.00520.09
7.3.320.0160.00520.01
7.3.310.0150.00419.89
7.3.300.0140.00519.78
7.3.290.0150.00519.66
7.3.280.0140.00519.40
7.3.270.0140.00519.13
7.3.260.0140.00519.04
7.3.250.0140.00618.91
7.3.240.0140.00618.80
7.3.230.0140.00618.81
7.3.220.0150.00618.75
7.3.210.0150.00618.69
7.3.200.0140.00618.66
7.3.190.0150.00618.60
7.3.180.0150.00618.48
7.3.170.0130.00618.48
7.3.160.0140.00618.40
7.3.150.0140.00618.36
7.3.140.0130.00618.35
7.3.130.0130.00618.25
7.3.120.0130.00718.23
7.3.110.0130.00718.19
7.3.100.0130.00718.08
7.3.90.0130.00618.20
7.3.80.0120.00718.05
7.3.70.0130.00618.10
7.3.60.0130.00618.00
7.3.50.0130.00717.92
7.3.40.0130.00617.88
7.3.30.0120.00717.85
7.3.20.0160.00718.45
7.3.10.0160.00618.39
7.3.00.0150.00618.38
7.2.340.0150.00618.87
7.2.330.0160.00618.75
7.2.320.0160.00618.72
7.2.310.0150.00618.55
7.2.300.0150.00718.55
7.2.290.0140.00718.46
7.2.280.0140.00718.43
7.2.270.0150.00718.40
7.2.260.0150.00618.34
7.2.250.0140.00718.32
7.2.240.0140.00718.30
7.2.230.0140.00718.17
7.2.220.0140.00718.14
7.2.210.0140.00718.11
7.2.200.0150.00718.17
7.2.190.0140.00718.02
7.2.180.0140.00717.93
7.2.170.0130.00717.94
7.2.160.0130.00717.94
7.2.150.0180.00718.59
7.2.140.0160.00718.57
7.2.130.0150.00718.60
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.35
7.2.70.0170.00718.37
7.2.60.0180.00718.37
7.2.50.0170.00718.37
7.2.40.0180.00618.39
7.2.30.0180.00718.38
7.2.20.0180.00718.42
7.2.10.0180.00818.43
7.2.00.0170.00718.43
7.1.330.0160.00718.22
7.1.320.0170.00618.02
7.1.310.0150.00618.00
7.1.300.0160.00617.85
7.1.290.0160.00717.85
7.1.280.0160.00617.75
7.1.270.0190.00717.75
7.1.260.0170.00617.70
7.1.250.0170.00717.61
7.1.240.0170.00717.58
7.1.230.0200.00617.51
7.1.220.0200.00717.45
7.1.210.0200.00617.45
7.1.200.0190.00717.48
7.1.190.0210.00617.48
7.1.180.0180.00717.45
7.1.170.0180.00617.46
7.1.160.0190.00717.46
7.1.150.0200.00617.44
7.1.140.0200.00617.43
7.1.130.0190.00617.44
7.1.120.0180.00717.45
7.1.110.0180.00717.47
7.1.100.0180.00717.46
7.1.90.0190.00717.48
7.1.80.0180.00617.52
7.1.70.0180.00717.42
7.1.60.0190.00718.14
7.1.50.0190.00618.14
7.1.40.0190.00718.12
7.1.30.0190.00718.13
7.1.20.0200.00718.12
7.1.10.0180.00617.48
7.1.00.0170.00617.46
7.0.330.0190.00617.34
7.0.320.0180.00617.30
7.0.310.0210.00717.17
7.0.300.0200.00617.17
7.0.290.0190.00617.15
7.0.280.0190.00617.15
7.0.270.0180.00717.14
7.0.260.0180.00617.17
7.0.250.0190.00617.25
7.0.240.0180.00717.26
7.0.230.0170.00717.29
7.0.220.0180.00717.24
7.0.210.0180.00617.24
7.0.200.0180.00617.24
7.0.190.0210.00617.25
7.0.180.0180.00717.25
7.0.170.0180.00717.27
7.0.160.0180.00617.22
7.0.150.0170.00617.19
7.0.140.0180.00617.19
7.0.130.0180.00617.25
7.0.120.0180.00717.24
7.0.110.0170.00617.23
7.0.100.0180.00617.21
7.0.90.0170.00717.18
7.0.80.0170.00617.17
7.0.70.0170.00717.17
7.0.60.0180.00617.18
7.0.50.0170.00617.16
7.0.40.0170.00717.20
7.0.30.0170.00617.20
7.0.20.0170.00617.16
7.0.10.0180.00617.19
7.0.00.0180.00617.16
5.6.400.0140.00717.35
5.6.390.0140.00717.34
5.6.380.0140.00717.16
5.6.370.0140.00817.17
5.6.360.0140.00817.15
5.6.350.0140.00717.16
5.6.340.0140.00817.16
5.6.330.0140.00717.16
5.6.320.0140.00717.16
5.6.310.0140.00717.16
5.6.300.0140.00817.10
5.6.290.0140.00817.15
5.6.280.0130.00817.15
5.6.270.0140.00717.15
5.6.260.0130.00817.14
5.6.250.0140.00717.12
5.6.240.0130.00817.14
5.6.230.0140.00717.17
5.6.220.0140.00717.17
5.6.210.0140.00717.16
5.6.200.0140.00717.18
5.6.190.0140.00717.19
5.6.180.0140.00717.16
5.6.170.0140.00817.17
5.6.160.0140.00717.18
5.6.150.0140.00817.18
5.6.140.0140.00717.16
5.6.130.0140.00717.18
5.6.120.0140.00717.16
5.6.110.0150.00717.12
5.6.100.0140.00817.12
5.6.90.0140.00717.13
5.6.80.0140.00717.11
5.6.70.0140.00717.16
5.6.60.0130.00817.15
5.6.50.0130.00717.12
5.6.40.0130.00717.11
5.6.30.0130.00717.10
5.6.20.0130.00717.08
5.6.10.0140.00717.08
5.6.00.0140.00717.08
5.5.380.0140.00816.97
5.5.370.0150.00716.97
5.5.360.0140.00716.91
5.5.350.0140.00716.89
5.5.340.0150.00716.90
5.5.330.0140.00716.90
5.5.320.0140.00716.89
5.5.310.0150.00616.91
5.5.300.0150.00716.90
5.5.290.0140.00716.89
5.5.280.0140.00716.88
5.5.270.0140.00716.88
5.5.260.0140.00716.87
5.5.250.0150.00716.92
5.5.240.0140.00716.92
5.5.230.0150.00716.88
5.5.220.0140.00716.88
5.5.210.0140.00716.94
5.5.200.0140.00716.83
5.5.190.0140.00716.83
5.5.180.0140.00716.83
5.5.170.0140.00716.97
5.5.160.0140.00716.86
5.5.150.0140.00716.83
5.5.140.0140.00716.81
5.5.130.0140.00716.81
5.5.120.0140.00716.81
5.5.110.0140.00716.81
5.5.100.0140.00716.90
5.5.90.0130.00716.90
5.5.80.0130.00716.89
5.5.70.0140.00716.93
5.5.60.0140.00716.91
5.5.50.0130.00716.91
5.5.40.0130.00816.91
5.5.30.0130.00716.91
5.5.20.0130.00716.93
5.5.10.0140.00716.86
5.5.00.0140.00716.84

preferences:
163.1 ms | 403 KiB | 5 Q