3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataValue = 'c'; $inputValue = 'b'; echo (string) $dataValue > (string) $inputValue && !empty($inputValue) ? 'TRUE' : 'FALSE'; echo ((string) $dataValue > (string) $inputValue) && !empty($inputValue) ? 'TRUE' : 'FALSE'; echo (string) $dataValue > ((string) $inputValue && !empty($inputValue)) ? 'TRUE' : 'FALSE';

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.5.00.0120.01219.86
8.4.150.0020.00114.05
8.4.140.0130.00917.22
8.4.130.0110.00719.28
8.4.120.0100.01120.55
8.4.110.0070.01318.76
8.4.100.0120.00818.38
8.4.90.0040.00620.81
8.4.80.0030.00518.62
8.4.70.0070.01017.78
8.4.60.0110.01018.79
8.4.50.0110.01018.78
8.4.40.0120.00918.91
8.4.30.0100.01018.73
8.4.20.0070.01419.36
8.4.10.0080.00019.67
8.3.280.0100.01118.36
8.3.270.0090.01016.42
8.3.260.0090.01116.66
8.3.250.0080.00618.86
8.3.240.0100.00917.16
8.3.230.0040.00516.71
8.3.220.0100.00719.01
8.3.210.0090.00216.57
8.3.200.0010.00716.45
8.3.190.0070.00316.88
8.3.180.0090.00917.09
8.3.170.0150.00318.54
8.3.160.0060.00316.69
8.3.150.0120.00616.79
8.3.140.0030.00618.41
8.3.130.0130.00318.24
8.3.120.0120.00618.93
8.3.110.0100.00020.94
8.3.100.0040.01524.06
8.3.90.0070.00026.77
8.3.80.0060.00319.36
8.3.70.0120.00316.50
8.3.60.0330.00616.32
8.3.50.0130.01016.63
8.3.40.0150.01517.13
8.3.30.0280.00617.00
8.3.20.0340.00317.25
8.3.10.0240.00817.38
8.3.00.0310.00017.23
8.2.290.0130.00520.41
8.2.280.0070.01118.45
8.2.270.0060.01217.21
8.2.260.0040.00416.70
8.2.250.0170.00316.77
8.2.240.0060.00318.95
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0110.00726.77
8.2.200.0090.00018.88
8.2.190.0140.00716.60
8.2.180.0040.01116.38
8.2.170.0300.00617.50
8.2.160.0310.00417.25
8.2.150.0370.00417.25
8.2.140.0330.00617.38
8.2.130.0250.00917.38
8.2.120.0260.00917.25
8.2.110.0250.01117.50
8.2.100.0290.00417.38
8.2.90.0270.00817.50
8.2.80.0200.01217.38
8.2.70.0250.00717.25
8.2.60.0260.01017.21
8.2.50.0240.00917.38
8.2.40.0220.01117.50
8.2.30.0310.00017.38
8.2.20.0070.01017.23
8.2.10.0210.00717.13
8.2.00.0210.01117.50
8.1.330.0100.00822.15
8.1.320.0130.00617.96
8.1.310.0110.00717.72
8.1.300.0070.01020.26
8.1.290.0060.00330.84
8.1.280.0290.00316.32
8.1.270.0280.00817.24
8.1.260.0450.00316.97
8.1.250.0320.00417.13
8.1.240.0270.00316.98
8.1.230.0180.01117.23
8.1.220.0310.00017.38
8.1.210.0230.00617.35
8.1.200.0140.01416.88
8.1.190.0230.00916.86
8.1.180.0150.01516.74
8.1.170.0250.00616.98
8.1.160.0290.00317.13
8.1.150.0290.00317.13
8.1.140.0230.00717.00
8.1.130.0230.00917.00
8.1.120.0250.00717.00
8.1.110.0290.00017.00
8.1.100.0300.00416.97
8.1.90.0300.00917.13
8.1.80.0290.00617.00
8.1.70.0160.01617.13
8.1.60.0160.01617.13
8.1.50.0300.01017.50
8.1.40.0230.01317.00
8.1.30.0360.00417.38
8.1.20.0260.00917.50
8.1.10.0260.00917.25
8.1.00.0330.00616.88

preferences:
86.81 ms | 403 KiB | 5 Q