3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = "AAAAAAAAABBBBGGGGGGGGKKKKKKKKKKKKKRRRRRRRRRRWWWWWWWWWWWWWWWWWWWWWWWWWWDDDDDDDDDDDDDDDDDDDDDDDDDDD"; var_dump(base64_decode($key)); var_dump(base64_decode($key, true)); // This is what JWT lib is using. $newKey = base64_encode(base64_decode($key)); var_dump($key, $newKey); var_dump(base64_decode($newKey)); var_dump(base64_decode($newKey, true)); // This is what JWT lib is using.

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.0130.00624.25
8.4.110.0120.00820.45
8.4.100.0120.00918.90
8.4.90.0130.00920.70
8.4.80.0170.00318.75
8.4.70.0060.00518.77
8.4.60.0120.01218.61
8.4.50.0070.01518.57
8.4.40.0040.01117.69
8.4.30.0130.00618.62
8.4.20.0100.01019.41
8.4.10.0080.00019.56
8.3.250.0080.00818.55
8.3.240.0110.00817.05
8.3.230.0110.00816.37
8.3.220.0040.00418.99
8.3.210.0070.01316.35
8.3.200.0040.00416.38
8.3.190.0110.00917.18
8.3.180.0120.00618.83
8.3.170.0000.01518.80
8.3.160.0040.00416.48
8.3.150.0110.00718.78
8.3.140.0110.00416.30
8.3.130.0050.00316.34
8.3.120.0050.00320.78
8.3.110.0060.00316.78
8.3.100.0000.00816.53
8.3.90.0130.00326.77
8.3.80.0190.00226.77
8.3.70.0200.00326.77
8.3.60.0210.00226.77
8.3.50.0220.00126.77
8.3.40.0130.00626.77
8.3.30.0150.00326.77
8.3.20.0100.00626.77
8.3.10.0150.00326.77
8.3.00.0140.00626.77
8.2.290.0080.01120.23
8.2.280.0110.00718.21
8.2.270.0070.01117.22
8.2.260.0070.00016.69
8.2.250.0070.01118.56
8.2.240.0060.01216.92
8.2.230.0050.00320.94
8.2.220.0000.00824.06
8.2.210.0080.00226.77
8.2.200.0140.00526.77
8.2.190.0150.00626.77
8.2.180.0130.00726.77
8.2.170.0160.00626.77
8.2.160.0150.00626.77
8.2.150.0160.00526.77
8.2.140.0180.00226.77
8.2.130.0150.00526.77
8.2.120.0170.00626.77
8.2.110.0190.00226.77
8.2.100.0190.00326.77
8.2.90.0150.00626.77
8.2.80.0180.00226.77
8.2.70.0180.00226.77
8.2.60.0130.00726.77
8.2.50.0150.00526.77
8.2.40.0140.00326.77
8.2.30.0170.00126.77
8.2.20.0170.00126.77
8.2.10.0120.00626.77
8.2.00.0150.00626.77
8.1.330.0050.00522.02
8.1.320.0120.00719.80
8.1.310.0110.00716.82
8.1.300.0110.00418.34
8.1.290.0140.00626.77
8.1.280.0170.00226.77
8.1.270.0160.00626.77
8.1.260.0170.00326.77
8.1.250.0120.01026.77
8.1.240.0150.00426.77
8.1.230.0130.00626.77
8.1.220.0140.00326.77
8.1.210.0110.00826.77
8.1.200.0150.00226.77
8.1.190.0130.00426.77
8.1.180.0150.00426.77
8.1.170.0110.00726.77
8.1.160.0140.00526.77
8.1.150.0130.00526.77
8.1.140.0130.00726.77
8.1.130.0180.00126.77
8.1.120.0120.00626.77
8.1.110.0170.00326.77
8.1.100.0140.00526.77
8.1.90.0070.01026.77
8.1.80.0110.00726.77
8.1.70.0120.00526.77
8.1.60.0130.00526.77
8.1.50.0140.00526.77
8.1.40.0120.00626.77
8.1.30.0190.00026.77
8.1.20.0180.00726.77
8.1.10.0160.00626.77
8.1.00.0130.00626.77

preferences:
28.88 ms | 403 KiB | 5 Q