3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "2fe3269fa210706de21ff97cc964590ec5bddd6677885fc55cfa6bfd94924822"; $str_64 = base64_encode($str); echo $str_64; echo "\n"; echo base64_decode($str_64); echo "\n"; echo "\n"; $str2 = "hoge"; $str2_h = hash_hmac('sha256',$str2,true); $str_64_2 = base64_encode($str2_h); echo $str_64_2; echo "\n"; echo base64_decode($str_64_2); echo "\n"; echo $str2_h; echo "\n"; echo "\n";

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.0110.00718.18
8.3.50.0140.00316.62
8.3.40.0070.00718.75
8.3.30.0070.01118.64
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.180.0070.01025.92
8.2.170.0030.01318.91
8.2.160.0130.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0090.00026.35
8.2.110.0090.00020.46
8.2.100.0110.00017.78
8.2.90.0000.01017.63
8.2.80.0040.00418.73
8.2.70.0030.00617.50
8.2.60.0040.00417.92
8.2.50.0040.00418.05
8.2.40.0040.00418.16
8.2.30.0040.00418.02
8.2.20.0000.00918.12
8.2.10.0030.00621.11
8.2.00.0040.00419.22
8.1.280.0040.01125.92
8.1.270.0000.00823.99
8.1.260.0070.00028.09
8.1.250.0020.00528.09
8.1.240.0030.00621.99
8.1.230.0090.00320.82
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0050.00318.43
8.1.160.0000.00718.82
8.1.150.0070.00018.79
8.1.140.0030.00518.76
8.1.130.0070.00020.05
8.1.120.0000.00817.41
8.1.110.0040.00417.41
8.1.100.0040.00417.41
8.1.90.0040.00417.40
8.1.80.0100.00017.42
8.1.70.0040.00417.26
8.1.60.0040.00417.52
8.1.50.0040.00417.46
8.1.40.0000.00817.48
8.1.30.0040.00417.62
8.1.20.0040.00417.55
8.1.10.0060.00317.50
8.1.00.0000.00717.41
8.0.300.0070.00318.77
8.0.290.0050.00316.63
8.0.280.0030.00318.45
8.0.270.0000.00718.09
8.0.260.0030.00318.30
8.0.250.0040.00416.84
8.0.240.0040.00416.84
8.0.230.0030.00316.83
8.0.220.0030.00316.80
8.0.210.0000.00716.72
8.0.200.0000.00616.88
8.0.190.0000.00816.77
8.0.180.0000.00716.80
8.0.170.0040.00416.74
8.0.160.0070.00016.85
8.0.150.0040.00416.75
8.0.140.0060.00316.75
8.0.130.0000.00513.27
8.0.120.0000.00716.84
8.0.110.0030.00316.81
8.0.100.0040.00416.71
8.0.90.0070.00016.84
8.0.80.0080.01016.84
8.0.70.0040.00416.90
8.0.60.0030.00316.83
8.0.50.0040.00416.79
8.0.30.0060.01217.24
8.0.20.0060.01216.89
8.0.10.0120.00617.04
8.0.00.0090.00916.97
7.4.330.0030.00315.55
7.4.320.0000.00716.48
7.4.300.0070.00316.38
7.4.290.0000.00716.32
7.4.280.0040.00416.55
7.4.270.0030.00316.54
7.4.260.0050.00013.22
7.4.250.0000.01016.27
7.4.240.0000.00716.48
7.4.230.0070.00016.29
7.4.220.0020.00616.39
7.4.210.0110.00716.45
7.4.200.0070.00016.44
7.4.140.0060.01216.40
7.4.130.0070.01116.41
7.4.120.0130.00616.48
7.4.110.0070.01716.32
7.4.100.0040.01916.38
7.4.90.0120.00616.39
7.4.80.0060.01216.36
7.4.70.0100.00716.30
7.4.60.0070.01016.35
7.4.50.0170.00316.55
7.4.40.0150.00416.31
7.4.30.0100.01016.65
7.4.20.0090.00916.32
7.4.10.0040.01316.34
7.4.00.0070.01016.53
7.3.330.0040.00416.21
7.3.320.0030.00313.11
7.3.310.0030.00316.10
7.3.300.0030.00316.26
7.3.290.0090.00716.22
7.3.260.0090.00916.36
7.3.250.0140.00416.50
7.3.240.0170.00016.48
7.3.230.0130.01016.29
7.3.220.0090.00916.47
7.3.210.0090.00916.27
7.3.200.0100.00716.20
7.3.190.0070.01116.50
7.3.180.0210.00016.49
7.3.170.0100.00716.47
7.3.160.0120.00416.37
7.3.150.0090.01516.29
7.3.140.0030.01316.45
7.3.130.0040.01316.38
7.3.120.0080.00816.40
7.3.110.0070.01116.39
7.3.100.0130.00316.46
7.3.90.0060.00916.12
7.3.80.0140.00316.54
7.3.70.0040.01316.14
7.3.60.0080.00816.23
7.3.50.0100.00716.40
7.3.40.0030.01316.09
7.3.30.0030.01316.27
7.3.20.0030.01516.38
7.3.10.0080.01116.27
7.3.00.0060.01116.25

preferences:
58.72 ms | 400 KiB | 5 Q