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.90.0320.00323.30
8.3.80.0290.00823.99
8.3.70.0330.00922.44
8.3.60.0330.00722.41
8.3.50.0190.00923.19
8.3.40.0150.00921.15
8.3.30.0160.00621.17
8.3.20.0130.00822.92
8.3.10.0130.00723.11
8.3.00.0150.00621.78
8.2.210.0100.00626.77
8.2.200.0120.00423.94
8.2.190.0160.00521.98
8.2.180.0170.00421.96
8.2.170.0120.00620.68
8.2.160.0120.00722.02
8.2.150.0130.00822.00
8.2.140.0120.00722.72
8.2.130.0130.00622.82
8.2.120.0130.00721.92
8.2.110.0120.00721.95
8.2.100.0130.00721.25
8.2.90.0160.00720.53
8.2.80.0140.00720.62
8.2.70.0120.00731.70
8.2.60.0140.00630.69
8.2.50.0150.00530.42
8.2.40.0130.00528.53
8.2.30.0120.00627.11
8.2.20.0110.00526.58
8.2.10.0130.00526.24
8.2.00.0110.00626.24
8.1.290.0150.00724.13
8.1.280.0170.00824.31
8.1.270.0120.00623.41
8.1.260.0110.00723.49
8.1.250.0130.00723.75
8.1.240.0120.00521.23
8.1.230.0140.00420.76
8.1.220.0110.00620.69
8.1.210.0140.00520.85
8.1.200.0120.00531.66
8.1.190.0120.00530.54
8.1.180.0130.00530.07
8.1.170.0120.00528.71
8.1.160.0120.00627.02
8.1.150.0110.00626.58
8.1.140.0110.00626.23
8.1.130.0120.00425.80
8.1.120.0110.00525.46
8.1.110.0100.00624.21
8.1.100.0100.00624.34
8.1.90.0100.00624.09
8.1.80.0120.00523.99
8.1.70.0110.00523.77
8.1.60.0130.00523.69
8.1.50.0120.00522.71
8.1.40.0110.00622.43
8.1.30.0120.00622.36
8.1.20.0130.00522.22
8.1.10.0130.00622.00
8.1.00.0130.00621.96
8.0.300.0150.00520.26
8.0.290.0170.00631.16
8.0.280.0150.00526.77
8.0.270.0120.00626.00
8.0.260.0140.00525.41
8.0.250.0130.00525.08
8.0.240.0140.00523.96
8.0.230.0140.00523.82
8.0.220.0130.00623.64
8.0.210.0120.00523.41
8.0.200.0130.00523.35
8.0.190.0130.00423.17
8.0.180.0120.00422.24
8.0.170.0130.00521.83
8.0.160.0120.00521.73
8.0.150.0120.00521.49
8.0.140.0120.00621.41
8.0.130.0120.00621.16
8.0.120.0140.00621.01
8.0.110.0140.00520.96
8.0.100.0130.00520.72
8.0.90.0120.00520.61
8.0.80.0120.00520.54
8.0.70.0110.00520.56
8.0.60.0120.00520.51
8.0.50.0110.00620.50
8.0.30.0100.00619.89
8.0.20.0120.00619.92
8.0.10.0120.00619.90
8.0.00.0090.00619.87
7.4.330.0110.00424.69
7.4.320.0140.00523.87
7.4.300.0140.00523.22
7.4.290.0130.00522.09
7.4.280.0140.00521.50
7.4.270.0140.00521.32
7.4.260.0140.00421.07
7.4.250.0130.00520.87
7.4.240.0120.00520.76
7.4.230.0130.00420.55
7.4.220.0120.00420.48
7.4.210.0120.00420.30
7.4.200.0120.00420.40
7.4.190.0120.00520.38
7.4.180.0120.00520.43
7.4.160.0120.00619.80
7.4.150.0120.00619.72
7.4.140.0120.00619.59
7.4.130.0110.00619.30
7.4.120.0120.00619.28
7.4.110.0120.00619.25
7.4.100.0120.00619.23
7.4.90.0120.00619.13
7.4.80.0120.00619.09
7.4.70.0120.00619.02
7.4.60.0120.00618.86
7.4.50.0110.00718.77
7.4.40.0110.00618.73
7.4.30.0120.00618.71
7.4.20.0120.00618.66
7.4.10.0120.00618.59
7.4.00.0110.00618.61
7.3.330.0140.00520.85
7.3.320.0140.00520.75
7.3.310.0140.00420.58
7.3.300.0120.00520.41
7.3.290.0130.00520.23
7.3.280.0130.00519.89
7.3.270.0130.00519.55
7.3.260.0130.00519.43
7.3.250.0130.00619.26
7.3.240.0130.00619.14
7.3.230.0130.00619.14
7.3.220.0130.00619.07
7.3.210.0140.00619.00
7.3.200.0130.00618.96
7.3.190.0130.00618.89
7.3.180.0130.00618.74
7.3.170.0120.00618.73
7.3.160.0130.00618.64
7.3.150.0130.00618.59
7.3.140.0120.00718.58
7.3.130.0120.00618.47
7.3.120.0120.00618.45
7.3.110.0120.00718.40
7.3.100.0120.00718.28
7.3.90.0120.00618.38
7.3.80.0110.00718.24
7.3.70.0120.00618.28
7.3.60.0120.00618.15
7.3.50.0120.00718.06
7.3.40.0120.00618.02
7.3.30.0120.00717.99
7.3.20.0150.00718.54
7.3.10.0150.00618.47
7.3.00.0140.00718.46
7.2.340.0140.00619.22
7.2.330.0150.00619.06
7.2.320.0150.00619.02
7.2.310.0140.00618.81
7.2.300.0140.00718.81
7.2.290.0140.00718.70
7.2.280.0140.00718.66
7.2.270.0140.00718.63
7.2.260.0140.00718.55
7.2.250.0140.00718.54
7.2.240.0130.00718.51
7.2.230.0130.00718.37
7.2.220.0130.00718.33
7.2.210.0130.00718.29
7.2.200.0140.00718.35
7.2.190.0130.00718.19
7.2.180.0130.00718.08
7.2.170.0120.00718.09
7.2.160.0130.00718.09
7.2.150.0180.00718.68
7.2.140.0160.00718.65
7.2.130.0150.00718.67
7.2.120.0160.00718.63
7.2.110.0160.00718.49
7.2.100.0190.00718.45
7.2.90.0180.00718.39
7.2.80.0180.00718.40
7.2.70.0160.00718.44
7.2.60.0170.00718.43
7.2.50.0170.00718.42
7.2.40.0170.00618.45
7.2.30.0180.00718.43
7.2.20.0180.00718.47
7.2.10.0180.00818.49
7.2.00.0170.00718.48
7.1.330.0160.00718.36
7.1.320.0160.00618.15
7.1.310.0150.00618.13
7.1.300.0160.00617.96
7.1.290.0150.00617.95
7.1.280.0160.00617.84
7.1.270.0190.00717.84
7.1.260.0170.00617.79
7.1.250.0160.00717.70
7.1.240.0170.00717.67
7.1.230.0200.00617.58
7.1.220.0200.00717.51
7.1.210.0210.00617.51
7.1.200.0190.00717.54
7.1.190.0210.00617.54
7.1.180.0180.00717.51
7.1.170.0180.00617.53
7.1.160.0190.00717.53
7.1.150.0190.00617.50
7.1.140.0200.00617.50
7.1.130.0190.00617.51
7.1.120.0180.00717.52
7.1.110.0170.00717.54
7.1.100.0180.00717.54
7.1.90.0180.00717.55
7.1.80.0180.00717.58
7.1.70.0180.00717.49
7.1.60.0190.00718.25
7.1.50.0190.00618.26
7.1.40.0190.00718.24
7.1.30.0180.00718.25
7.1.20.0200.00718.23
7.1.10.0170.00617.55
7.1.00.0170.00617.52
7.0.330.0180.00717.42
7.0.320.0180.00617.39
7.0.310.0200.00717.24
7.0.300.0200.00617.24
7.0.290.0190.00617.23
7.0.280.0180.00617.22
7.0.270.0180.00717.21
7.0.260.0180.00617.23
7.0.250.0180.00617.31
7.0.240.0170.00717.33
7.0.230.0170.00717.35
7.0.220.0170.00717.31
7.0.210.0170.00617.31
7.0.200.0180.00617.30
7.0.190.0210.00617.31
7.0.180.0180.00717.32
7.0.170.0180.00717.33
7.0.160.0170.00717.29
7.0.150.0170.00617.27
7.0.140.0180.00617.26
7.0.130.0180.00717.31
7.0.120.0170.00717.31
7.0.110.0170.00617.30
7.0.100.0180.00617.28
7.0.90.0170.00717.25
7.0.80.0160.00617.24
7.0.70.0170.00717.25
7.0.60.0170.00617.25
7.0.50.0170.00617.24
7.0.40.0160.00717.27
7.0.30.0160.00617.28
7.0.20.0170.00617.23
7.0.10.0180.00617.27
7.0.00.0170.00617.24
5.6.400.0140.00717.47
5.6.390.0140.00717.47
5.6.380.0130.00717.26
5.6.370.0130.00817.28
5.6.360.0140.00817.25
5.6.350.0140.00717.26
5.6.340.0130.00817.27
5.6.330.0130.00717.27
5.6.320.0130.00817.27
5.6.310.0140.00817.27
5.6.300.0130.00817.21
5.6.290.0130.00817.25
5.6.280.0130.00817.26
5.6.270.0130.00717.26
5.6.260.0130.00817.25
5.6.250.0130.00717.23
5.6.240.0130.00817.25
5.6.230.0130.00717.27
5.6.220.0140.00717.27
5.6.210.0140.00717.27
5.6.200.0140.00717.28
5.6.190.0130.00817.30
5.6.180.0130.00717.27
5.6.170.0130.00817.28
5.6.160.0140.00717.29
5.6.150.0130.00817.29
5.6.140.0140.00717.27
5.6.130.0140.00717.28
5.6.120.0130.00817.26
5.6.110.0140.00717.23
5.6.100.0130.00817.23
5.6.90.0130.00717.24
5.6.80.0130.00717.21
5.6.70.0130.00717.26
5.6.60.0120.00817.25
5.6.50.0130.00717.22
5.6.40.0130.00717.21
5.6.30.0120.00717.20
5.6.20.0120.00717.19
5.6.10.0130.00717.18
5.6.00.0130.00717.19
5.5.380.0130.00817.06
5.5.370.0140.00717.06
5.5.360.0140.00717.00
5.5.350.0140.00716.98
5.5.340.0140.00716.99
5.5.330.0140.00716.99
5.5.320.0140.00716.98
5.5.310.0140.00617.00
5.5.300.0140.00717.00
5.5.290.0140.00716.98
5.5.280.0140.00716.97
5.5.270.0140.00816.98
5.5.260.0140.00716.96
5.5.250.0140.00717.01
5.5.240.0140.00717.00
5.5.230.0140.00716.98
5.5.220.0130.00716.97
5.5.210.0130.00717.02
5.5.200.0130.00716.92
5.5.190.0130.00716.91
5.5.180.0140.00716.92
5.5.170.0130.00717.07
5.5.160.0130.00716.94
5.5.150.0130.00716.92
5.5.140.0140.00716.90
5.5.130.0140.00716.90
5.5.120.0130.00716.90
5.5.110.0140.00716.90
5.5.100.0130.00716.99
5.5.90.0130.00716.99
5.5.80.0130.00716.98
5.5.70.0130.00717.02
5.5.60.0130.00716.99
5.5.50.0130.00817.00
5.5.40.0130.00817.00
5.5.30.0130.00717.00
5.5.20.0130.00717.02
5.5.10.0130.00716.95
5.5.00.0130.00716.92

preferences:
30.4 ms | 401 KiB | 5 Q