3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = 'A'; $second = '}'; $ascii_first = ord($first); $ascii_second = ord($second); $binary_first = decbin($ascii_first); $binary_second = decbin($ascii_second); $binary_XOR = decbin($ascii_first ^ $ascii_second); $final_ascii = bindec($binary_XOR); $final_char = chr($final_ascii); echo "Letters \n\t $first \n\t $second \n"; echo "ASCII values: \n\t $first: $ascii_first \n\t $second: $ascii_second \n"; echo "Binary values \n\t $ascii_first: $binary_first \n\t $ascii_second: $binary_second \n"; echo "XOR of values: \n\t Binary: $binary_XOR \n\t Decimal: $final_ascii\n"; echo "Final character of ASCII value $final_ascii: $final_char";

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.0190.00318.04
8.3.50.0150.00018.10
8.3.40.0110.00718.76
8.3.30.0140.00718.75
8.3.20.0090.00022.14
8.3.10.0000.00722.09
8.3.00.0030.00623.69
8.2.180.0110.00718.54
8.2.170.0140.00022.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0030.00722.20
8.2.100.0060.00617.84
8.2.90.0040.00417.91
8.2.80.0100.00017.97
8.2.70.0000.00917.80
8.2.60.0080.00018.03
8.2.50.0090.00418.81
8.2.40.0070.00519.50
8.2.30.0070.00519.35
8.2.20.0050.00718.79
8.2.10.0050.00719.42
8.2.00.0060.00719.38
8.1.280.0130.00725.92
8.1.270.0040.00421.95
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0060.00320.91
8.1.230.0110.00022.66
8.1.220.0080.00017.79
8.1.210.0060.00319.09
8.1.200.0030.00617.36
8.1.190.0150.00316.88
8.1.180.0090.00418.81
8.1.170.0080.00419.08
8.1.160.0080.00519.17
8.1.150.0090.00519.12
8.1.140.0090.00320.21
8.1.130.0070.00619.82
8.1.120.0070.00618.48
8.1.110.0060.00718.41
8.1.100.0090.00318.45
8.1.90.0080.00618.49
8.1.80.0090.00418.45
8.1.70.0060.00618.47
8.1.60.0090.00418.55
8.1.50.0090.00318.47
8.1.40.0070.00618.43
8.1.30.0090.00418.57
8.1.20.0050.00718.54
8.1.10.0110.00218.54
8.1.00.0090.00418.44
8.0.300.0040.00419.64
8.0.290.0000.00816.75
8.0.280.0100.00218.93
8.0.270.0070.00618.40
8.0.260.0070.00519.76
8.0.250.0100.00118.22
8.0.240.0070.00518.26
8.0.230.0100.00218.23
8.0.220.0120.00018.20
8.0.210.0120.00118.22
8.0.200.0080.00318.26
8.0.190.0100.00318.28
8.0.180.0100.00318.18
8.0.170.0090.00318.21
8.0.160.0020.00518.21
8.0.150.0070.00618.19
8.0.140.0080.00318.18
8.0.130.0060.00516.43
8.0.120.0100.00318.22
8.0.110.0060.00618.16
8.0.100.0040.00818.10
8.0.90.0090.00418.17
8.0.80.0100.00617.74
8.0.70.0080.00418.20
8.0.60.0060.00618.22
8.0.50.0090.00418.21
8.0.30.0120.00818.31
8.0.20.0130.00517.96
8.0.10.0080.01018.23
8.0.00.0150.00417.31
7.4.330.0050.00417.53
7.4.320.0030.00818.04
7.4.300.0000.01118.01
7.4.290.0090.00518.03
7.4.280.0020.01118.05
7.4.270.0080.00317.95
7.4.260.0060.00516.33
7.4.250.0020.01017.95
7.4.240.0080.00317.94
7.4.230.0070.00517.90
7.4.220.0040.00617.33
7.4.210.0070.00917.28
7.4.200.0070.00517.91
7.4.190.0180.00019.52
7.4.180.0100.00519.52
7.4.160.0120.00319.52
7.4.150.0100.00717.98
7.4.140.0110.00617.92
7.4.130.0110.00617.46
7.4.120.0090.01017.49
7.4.110.0100.00917.44
7.4.100.0120.00617.40
7.4.90.0120.00617.37
7.4.80.0100.00917.60
7.4.70.0120.00816.94
7.4.60.0110.00717.10
7.4.50.0110.00716.95
7.4.40.0140.00517.08
7.4.30.0120.00817.21
7.4.20.0100.00817.23
7.4.10.0080.01117.11
7.4.00.0110.00716.63
7.3.330.0100.00117.87
7.3.320.0060.00416.32
7.3.310.0120.00017.89
7.3.300.0060.00417.92
7.3.290.0060.01017.35
7.3.280.0130.00319.52
7.3.270.0120.00517.98
7.3.260.0100.00916.73
7.3.250.0120.00517.89
7.3.240.0090.00916.93
7.3.230.0090.00917.39
7.3.220.0080.01017.85
7.3.210.0080.01017.38
7.3.200.0100.00816.95
7.3.190.0060.01117.03
7.3.180.0110.00716.98
7.3.170.0100.00917.02
7.3.160.0130.00916.97
7.3.150.0100.00717.27
7.3.140.0130.00517.06
7.3.130.0080.01117.24
7.3.120.0130.00717.17
7.3.110.0100.00817.13
7.3.100.0080.01117.18
7.3.90.0090.00917.17
7.3.80.0100.00816.70
7.3.70.0130.00416.65
7.3.60.0110.00616.58
7.3.50.0110.00716.58
7.3.40.0070.01116.64
7.3.30.0080.01016.63
7.3.20.0090.00916.62
7.3.10.0210.00516.68
7.3.00.0080.01016.63
7.2.340.0170.00517.95
7.2.330.0190.00417.47
7.2.320.0120.00717.03
7.2.310.0100.01017.10
7.2.300.0100.00817.10
7.2.290.0110.01017.04
7.2.280.0130.00817.26
7.2.270.0190.00517.20
7.2.260.0120.01017.25
7.2.250.0150.00717.27
7.2.240.0120.01217.21
7.2.230.0140.01117.32
7.2.220.0150.00817.32
7.2.210.0140.00816.78
7.2.200.0140.00716.76
7.2.190.0120.00816.80
7.2.180.0110.01016.86
7.2.170.0110.00816.76
7.2.160.0130.00816.79
7.2.150.0140.00816.79
7.2.140.0140.00716.77
7.2.130.0130.01116.82
7.2.120.0160.00816.76
7.2.110.0240.00616.87
7.2.100.0140.00816.84
7.2.90.0220.00416.82
7.2.80.0170.00816.76
7.2.70.0160.00716.80
7.2.60.0140.00816.75
7.2.50.0150.01016.76
7.2.40.0160.00816.76
7.2.30.0130.01016.85
7.2.20.0210.00816.77
7.2.10.0240.00716.84
7.2.00.0130.00716.73
7.1.330.0150.00716.64
7.1.320.0190.00816.58
7.1.310.0280.00416.01
7.1.300.0180.00716.06
7.1.290.0170.00716.08
7.1.280.0310.00815.98
7.1.270.0160.00916.09
7.1.260.0160.00816.06
7.1.250.0200.00715.96
7.1.240.0190.01016.55
7.1.230.0170.00916.56
7.1.220.0190.00716.51
7.1.210.0200.00716.54
7.1.200.0230.00516.50
7.1.190.0170.01016.50
7.1.180.0190.01016.56
7.1.170.0230.00516.52
7.1.160.0200.00916.56
7.1.150.0180.00816.47
7.1.140.0230.00416.54
7.1.130.0210.00716.50
7.1.120.0210.00716.51
7.1.110.0190.00816.60
7.1.100.0190.00916.55
7.1.90.0220.00716.44
7.1.80.0240.00416.55
7.1.70.0190.00716.54
7.1.60.0220.00716.55
7.1.50.0200.00816.55
7.1.40.0170.00716.53
7.1.30.0150.01116.54
7.1.20.0190.00716.50
7.1.10.0140.01216.56
7.1.00.0170.01416.52

preferences:
53.72 ms | 401 KiB | 5 Q