3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bytes = random_bytes(100); var_dump(json_encode(['binary_data' => $bytes]));

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.110.0320.00516.43
8.3.100.0370.01016.53
8.3.90.0330.01316.52
8.3.80.0290.01516.63
8.3.70.0410.00616.25
8.3.60.0380.00916.25
8.3.50.0410.00716.50
8.3.40.0200.01417.50
8.3.30.0330.00817.00
8.3.20.0340.00317.13
8.3.10.0210.01017.25
8.3.00.0160.00317.38
8.2.230.0250.00716.25
8.2.220.0260.00616.26
8.2.210.0210.01215.97
8.2.200.0190.00016.50
8.2.190.0180.00616.73
8.2.180.0250.00016.16
8.2.170.0290.00417.38
8.2.160.0310.01017.38
8.2.150.0400.00617.25
8.2.140.0400.00617.25
8.2.130.0380.00717.63
8.2.120.0360.00717.50
8.2.110.0340.00917.60
8.2.100.0480.00317.38
8.2.90.0320.01217.50
8.2.80.0270.01217.21
8.2.70.0310.01217.25
8.2.60.0110.01817.38
8.2.50.0270.00317.25
8.2.40.0260.00317.50
8.2.30.0280.00417.25
8.2.20.0150.00317.50
8.2.10.0250.01117.38
8.2.00.0290.01117.46
8.1.290.0420.00016.13
8.1.280.0350.00815.88
8.1.270.0290.01017.02
8.1.260.0320.01317.13
8.1.250.0520.00317.13
8.1.240.0350.00316.99
8.1.230.0300.00917.11
8.1.220.0280.00817.25
8.1.210.0260.00916.88
8.1.200.0280.01117.09
8.1.190.0380.00017.10
8.1.180.0180.00416.88
8.1.170.0120.00617.11
8.1.160.0150.00317.22
8.1.150.0170.00016.99
8.1.140.0240.00917.13
8.1.130.0310.00717.25
8.1.120.0280.01117.10
8.1.110.0320.00616.98
8.1.100.0310.00816.98
8.1.90.0280.01217.13
8.1.80.0410.00316.88
8.1.70.0320.00417.09
8.1.60.0350.00017.25
8.1.50.0340.00717.13
8.1.40.0270.01716.88
8.1.30.0320.00317.13
8.1.20.0160.01917.34
8.1.10.0220.00517.22
8.1.00.0220.00017.13

preferences:
24.64 ms | 403 KiB | 5 Q