3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = '1001 1100 0100 1101'; $encoded = implode(array_map(function($ch) { return $ch === ' ' ? ' ' : random_int(0, 1);}, str_split($str))); echo $encoded;

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)
7.4.100.0070.01016.44
7.4.90.0110.00816.50
7.4.80.0090.00916.53
7.4.70.0120.00616.44
7.4.60.0070.01316.32
7.4.50.0070.01016.24
7.4.40.0100.01816.10
7.4.30.0110.01116.36
7.4.20.0000.01816.50
7.4.10.0180.00016.51
7.4.00.0130.00516.40
7.3.220.0060.01616.46
7.3.210.0130.00516.44
7.3.200.0100.00716.38
7.3.190.0130.00516.20
7.3.180.0190.00316.27
7.3.170.0140.00816.44
7.3.160.0160.00316.20
7.3.150.0140.00816.45
7.3.140.0120.01216.54
7.3.130.0180.00716.22
7.3.120.0120.00616.38
7.3.110.0050.01416.24
7.3.100.0190.00616.41
7.3.90.0190.00016.25
7.3.80.0130.00616.61
7.3.70.0100.01016.46
7.3.60.0160.00416.43
7.3.50.0140.00816.28
7.3.40.0160.00616.21
7.3.30.0150.00416.37
7.3.20.0090.00916.24
7.3.10.0110.00816.20
7.3.00.0050.01216.26
7.2.330.0070.01416.61
7.2.320.0160.00016.41
7.2.310.0110.00716.40
7.2.300.0090.01016.63
7.2.290.0110.01116.50
7.2.280.0150.00316.71
7.2.270.0080.00916.60
7.2.260.0120.00616.50
7.2.250.0120.00816.39
7.2.240.0160.00816.38
7.2.230.0120.00916.42
7.2.220.0070.01116.41
7.2.210.0100.00916.57
7.2.200.0170.00316.53
7.2.190.0130.00816.38
7.2.180.0140.00716.41
7.2.170.0120.00916.57
7.2.160.0140.00716.40
7.2.150.0070.01416.30
7.2.140.0100.01616.48
7.2.130.0060.01316.68
7.2.120.0100.01016.50
7.2.110.0130.00816.55
7.2.100.0110.00916.66
7.2.90.0140.00616.60
7.2.80.0130.01016.50
7.2.70.0160.01116.61
7.2.60.0170.00316.46
7.2.50.0300.00616.38
7.2.40.0200.00816.67
7.2.30.0160.01216.60
7.2.20.0110.01416.36
7.2.10.0140.00916.47
7.2.00.0130.00816.56

preferences:
30.12 ms | 765 KiB | 5 Q